I left out the daily increment. there should be a event_time += 86400 end of the inner loop. while True: while time()<event_time and not quit(): sleep(5) if quit(): break launch() event_time += 86400