finally got time_passed and next_day right