global numbervar nIReady;
local numbervar intLeft := nIReady
NumberVar Days := Truncate ( intLeft / 86400);
intLeft := intLeft - Days * 86400;
NumberVar Hours := Truncate ( intLeft / 3600);
intLeft := intLeft - Hours *3600;
NumberVar Minutes := Truncate ( intLeft / 60);
intLeft := intLeft - Minutes * 60
NumberVar Seconds := intLeft ;
if nIReady=0
then 0
else
(Days*1440)+(Hours*60) + Minutes + (Seconds/60)
It's not clean, but I think that Remainder is not working as one would think...at least in my head...I have never used the funtion so I may be mistaken.
HTH