corrected the time difference calculation in on-time tests