What about a long containing seconds (or milliseconds)?
If you want to format it as a time you could use the following:
formatDateTime(parseDateTime($duration + '','ss'),'mm:ss')
If $duration is set to 90, this will print 01:30.
Hi Christopher
I think there are various ways to do this. I would store the time (seconds or milliseconds) and then just to convert this into a string variable by calculating the mins and seconds from the milliseconds. The idea would be to also store this string variable and display this instead. I would put this calculation on the before commit just to confirm it gets calculated correctly everytime.
Gustav