need to implement your own intervals.determine