Make sure the iteration doesnt end and start in the same day