Dan,
I want to start off by saying thank you for all the work you do answering question on these forums.
I’ve been using this countdown expression for some time now, but in a 10 minute interval. Without fail, the countdown always displays time “4:04” (four minutes and four seconds) as “5:14” (five minutes and fourteen seconds). I’ve tried change the delay to 0, 1, etc… but no matter what 4:04 always is replaced with 5:14.
Thoughts on why this happens and possibly a solution for the issue?
Here is a video showing my issue. 9880_countdownvideo.mov.zip
rate = -1;
clockStart = 600;
delay = 2;
function padZero(n){
if (n < 10) return "0" + n else return "" + n
}
t = Math.max(time - delay,0);
clockTime = Math.max(clockStart + rate*(t - inPoint),0);
t = Math.floor(clockTime);
min = Math.floor((t%3600)/60);
sec = Math.floor(t%60);
min + ":" + padZero(sec)