Just to make things clear:
A timer can't continue to count down when the program is closed. A closed program does no calculations, so actually while closed nothing can be changed.
But on startup you can compare the timer with the system time and see how much time has passed. You would then have to make events to change everything that would have changed in the time past.