Count down timer resets when the app closes or the app looses internet connection

Study the clock Milliseconds value , measured from 1970.

It combines all those time parts you are comparing, in a single number, easy to store.