Handles time differences and calculations.