When you suspend or exit and an active timer is running, add os.time() to the secondsLeft. This is when the timer should expire.
When your app resumes read in the value you saved, subtract that value from the current os.time(): local secondsLeft = loadedTijme - os.time().
if secondsLeft > 0 then
– start a new timer using secondsLeft
end
Rob