How this instrument works
Adding time to a clock reading is a different operation from adding two durations together. Summing '2 hours 30 minutes' and '1 hour 45 minutes' gives you another duration — a length of time with no fixed position on the clock. Adding a duration to a specific time of day, like '10:15 plus 45 minutes,' gives you a new point in time, and that point has to respect the fact that clocks reset to zero every 24 hours. This calculator handles that second operation: a start time plus an amount to add, returning the resulting clock reading.
The mechanic is straightforward modular arithmetic. Both the start time and the duration to add are converted into a single count of seconds since midnight, those are summed, and the result is reduced modulo 86,400 (the number of seconds in a day) to land back inside a normal 0:00-23:59:59 clock face. Whatever whole days get divided out in that reduction are reported separately as 'days later,' so a shift that runs past midnight still shows you both the correct time of day and the fact that it landed on the following calendar date.
This shows up constantly outside a math classroom: working out when a delivery given a 90-minute window will actually arrive, when a flight lands after a stated flight time, when a dose taken at a set time should be repeated, or when a meeting that starts at 10:15 and runs 45 minutes will let out. In every one of those cases you already know a clock time and a length of time to add — you just want the resulting clock time back, with the midnight rollover handled for you instead of counted on your fingers.
- Enter the start time in 24-hour format: an hour from 0-23 and a minute from 0-59.
- Enter the duration to add as hours, minutes, and seconds — any of the three can be left at zero.
- Read the resulting hour, minute, and second — the new clock time after the addition.
- Check 'days later': 0 means the result lands the same day, 1 means it rolled past midnight into the next day.
- For durations longer than 24 hours, add the extra hours directly into the hours field — the calculator reduces any total correctly.
Worked example — a 45-minute meeting starting at 10:15
A meeting starts at 10:15 and is scheduled to run 45 minutes. Total seconds from midnight = (10x3600+15x60) + (0x3600+45x60+0) = 36,900 + 2,700 = 39,600. Result hour = floor(39,600/3,600) mod 24 = 11; result minute = floor((39,600 mod 3,600)/60) = 0; result second = 0. The meeting ends at 11:00, with 0 days later — the same clock day.
Now take a night-shift case that actually crosses midnight: rounds start at 22:30 (10:30 PM) and run 3 hours. Total seconds = (22x3600+30x60) + (3x3600) = 81,000 + 10,800 = 91,800. Result hour = floor(91,800/3,600) mod 24 = 25 mod 24 = 1; result minute = floor((91,800 mod 3,600)/60) = 30. The shift ends at 01:30 — but days later = floor(91,800/86,400) = 1, confirming that 01:30 falls on the next calendar day, not the same one the shift started on.
Questions
How is adding time to a clock reading different from adding two durations?
Two durations added together (say, 2h30m plus 1h45m) just give you a longer duration — there's no reason for it to reset at 24 hours, since it isn't tied to a specific clock face. A clock time plus a duration is different: the answer has to be a valid time of day, so once the running total passes 24 hours (86,400 seconds) it wraps back to 00:00 and the day count increments. This calculator performs that second, clock-aware kind of addition.
What happens if the result crosses midnight?
The clock time shown always stays within a normal 0:00-23:59:59 range, and the separate 'days later' output tells you how many midnights were crossed to get there. A start time of 22:30 plus 3 hours reads as 01:30 with days later = 1, meaning the resulting 01:30 belongs to the day after the start time, not the same day.
Can I add more than 24 hours in a single calculation?
Yes — enter the full duration into the hours field, for example 30 for a day-and-a-quarter addition. The modulo-86,400 reduction handles any size of input correctly, and 'days later' will simply report a larger number of full days that got divided out along the way.
Why does this use 24-hour time instead of AM/PM?
A 24-hour clock avoids the ambiguity of AM/PM arithmetic — adding 3 hours to 11 PM in a 12-hour format means juggling a rollover from 'PM' to 'AM' by hand, while in 24-hour notation it's a single modulo operation on the number 23:00 + 3:00 = 26:00, reduced to 02:00 the next day. Enter your times in 24-hour form (13:00 for 1 PM, for example) and convert the result back to 12-hour form afterward if that's what you need to read.
Can I use this to subtract a duration from a clock time instead?
Not directly — this calculator only adds forward. To subtract, you can add the 24-hour complement of the duration instead: subtracting 45 minutes is the same as adding 23 hours and 15 minutes and treating a 'days later' value of 1 as actually meaning the previous day rather than the next one.