added is_time_in_range for the funrunner