How to reset seconds in a timer formula

I am trying to build a timer. I need the seconds to go back to 0 when it gets to 60.

This is the current formula
DATETIME_DIFFERENCE(appVars.timeNow, appVars.timeStarted, “seconds”)
It just keeps going so I tried an IF statement and nothing changed.

I feel it needs to be looped in this formula but not sure.

Hi, answered this in the other thread