If `@entry_time` is used for range_start and range_end won't you end up with a range where the start is greater than the end?