I am trying to test and implement Alex's countdown timer php code but I noticed there is a bug and can't figure out how to fix it. If you watch the timer, it counts down by seconds for about 60 interations and then increments the minute so the clock becomes stuck. I am guessing it has something to do with the for loop but I do not know php or how to fix it:

https://litmus.com/community/learning/27-how-to-add-a-countdown-timer-to-your-email

Watch the seconds countdown, after it runs for about a minute you will see the minute placeholder increment