how to determine the interval