>>*-- Store current Hours and Minutes portion of time >>nTime1 = substr(time(),1,5) >>*-- Store another time on Hours and Minutes >>nTime2 = substr(time(),1,5) >>>>
>nTime1 = substr(time(),1,5) > >*** Another time >nTime2 = substr(time(),1,5) >ltTime1 = DTOT(DATE())+VAL(LEFT(nTime1,2))*3600 + VAL(RIGHT(nTime1,2))*60 >IF nTime1 > nTime2 > ltTime2 = DTOT(DATE()+1)+VAL(LEFT(nTime2,2))*3600 + VAL(RIGHT(nTime2,2))*60 >ELSE > ltTime2 = DTOT(DATE()+1)+VAL(LEFT(nTime2,2))*3600 + VAL(RIGHT(nTime2,2))*60 >ENDIF >? ltTime2 - ltTime1 && Result in seconds >Thank you. I didn't think of converting to seconds and calculating the difference in seconds and then converting to minutes. I appreciate your help.