Number counter the runs 24 hours

if you rely want it to count in the background just save the start time with

getCurrentGeolocation( ) in local storage. When the user comes back just subtract that with the current time then divide by the tick rate and that will give you the number of ticks that passed when the user is not there, hope this helps