In this link on the second example i found a count down timer, but it only works for minutes and seconds, how can i make it work for hours and days too. This is the code Answer First things first: Using .sleep() as a timer is not a good idea. Sleep() doesn’t take into consideration the time necessary to run