interval.ranges function

calcula rangos