Hi,I think you calculation should be;var differenceT = Floor((
Time2Num(TimeField5.formattedValue, "HH:MM") -
Time2Num(TimeField4.formattedValue, "HH:MM") + (60 * 60 * 1000) - 1 ) /
(60 * 60 * 1000)) * (60 * 60 * 1000)+1That is add an hour minus one
millisecond, truncate to get the hours, then multiple by hours to get
back to something for Num2GMTime.RegardsBruce