Add time calculation.