Skip to content
MasterMath

Time Duration Calculator

A concert from 20:30 to 02:15 lasts five and three quarter hours, not minus eighteen. Work out the time between two clock readings even when the event crosses midnight.

Duration

—

Duration—
In decimal hours—
In minutes—
Before breaks—
Ends—

How this was worked out

    How it is worked out

    duration = end time − start time (+ 24 h if it crosses midnight)

    Why it is done this way

    Subtracting two clock times gives a negative number as soon as the end is smaller than the start, which is what happens with anything finishing in the small hours. The fix is to add twenty-four hours to that subtraction, which is the same as understanding that the end belongs to the next day.

    Step by step

    1. Turn both times into minutes since midnight: 20:30 is 1,230 minutes
    2. Subtract the start from the end: 135 − 1,230 = −1,095
    3. If it comes out negative, add 1,440 minutes, which is a whole day: 345
    4. Divide by 60 to get back to hours and minutes: 5:45

    What is worth knowing

    Working out a night shift also means deciding what to do with the breaks, which is why they have their own field: the gross duration is how long the event runs and the net one is what actually gets paid or worked. If the event runs longer than twenty-four hours, two clock readings are not enough to describe it and you need the dates: the days between dates calculator does that.

    Frequently asked questions

    How long is it from 20:30 to 02:15?

    Five hours and forty-five minutes.

    How do I count a night shift?

    Enter the start and end times as they are. The calculator understands that the end belongs to the next day.

    What if the event runs for several days?

    Then you need dates rather than times: use the days between dates calculator.