I forgot to subtract the over-60 values in the end. This should be the correct way:

`function rawToTimecode(number){`

var seconds = Math.floor(number);

var minutes = Math.floor(seconds / 60);

var hours = Math.floor(minutes / 60);

var frames = Math.round((number-seconds)/thisComp.frameDuration);

return [hours,minutes%60,seconds%60,frames]

.map(

function(n){

return(n>10) ? n : "0"+n

}

).join(":");

}

var rawTime = thisComp.duration-time;

rawToTimecode(rawTime)

Andrei

My

Envato portfolio.