Calculation of Time Differences