Calculation for times (average + format)