Dates & Time

Time Calculator (Elapsed & Add/Subtract)

Two tools in one. The difference mode gives elapsed time between two clock times, and the add/subtract mode applies a duration to a start time.

Reviewed and updated

How to use
  1. Pick difference mode or add/subtract mode.
  2. Enter your start time, and an end time or a duration.
  3. Use the decimal hours and total minutes outputs as needed.
End
Elapsed duration

Decimal hours
Total minutes
Total seconds
Date math uses your inputs as given; check time-zone and leap-year edge cases.
Was this helpful?

Elapsed time: convert to seconds, subtract, convert back

Clock arithmetic is awkward because there are 60 seconds in a minute and 60 minutes in an hour, not 100. The clean way is to collapse each time to a single number of seconds, do the maths, then rebuild it.

total seconds = (h × 3600) + (m × 60) + s

Turning seconds back into h:m:s

Once you have a difference in seconds, split it back out with whole-number division and remainders.

  • Hours — the whole part of total seconds ÷ 3600.
  • Minutes — take what is left after the hours (the remainder), divide by 60, keep the whole part.
  • Seconds — the final remainder, what is left after minutes.
  • Crossing midnight — if the end clock time is smaller than the start, add 24 hours (86,400 s) to the end before subtracting, or the answer comes out negative.

Time units at a glance

UnitSecondsMinutesHours
1 minute601
1 hour3,600601
1 day86,4001,44024
1 week604,80010,080168

To read a time as a decimal (useful for pay and billing), use hours + minutes÷60 + seconds÷3600. So 90 minutes is 1.5 hours, and 15 minutes is 0.25 hours.

Work hours: subtract the unpaid break

A shift is the span from clock-in to clock-out, minus any unpaid break. Find the elapsed time first, then take off the break as its own duration. A break of 30 minutes or more is usually unpaid; a short 20-minute one is often paid.

Common questions

How do I find the time between two clock times?

Turn both times into total seconds, subtract, then turn the result back into hours, minutes and seconds. If the end time is earlier on the clock, the span crosses midnight, so add 24 hours to the end before subtracting.

How do I add a duration to a time and carry over?

Add the seconds, then the minutes, then the hours. Whenever seconds reach 60 carry one minute; whenever minutes reach 60 carry one hour. Anything past 24 hours rolls into the next day.

What is the difference between 12 AM and 12 PM?

12 AM is midnight, the start of the day (00:00 on a 24-hour clock). 12 PM is noon (12:00). Mixing these up is the most common error when reading a 12-hour time.

From the blog

Guides & how-tos

All articles →