Not sure if this makes sense: when calculating 'time' you typically subtract the'earlier' (smaller time 'value) number from the 'later' (larger time value)!try:Dtime = Etime - Stime