Time Calculator

Add or subtract times, compute a date after a duration, and evaluate time expressions.

Time Calculator

Add or subtract two time values. Enter days, hours, minutes, and/or seconds. Blank fields default to 0.

Day
Hour
Minute
Second

Add or Subtract Time from a Date

Select a start date and time, then add or subtract a duration to find the result.

Clock-time arithmetic: the start is treated as a plain date and time with no time zone, so daylight saving changes are not applied. Adding 24 hours always lands on the same clock time the next day, and the answer is the same wherever you are.

Start Date & Time
Duration to Add / Subtract
Day
Hour
Minute
Second

Time Calculator in Expression

Type a time expression using d (days), h (hours), m (minutes), s (seconds) with + or − operators. Spaces are optional.

Examples:
1d 2h 3m 4s + 4h 5s - 2030s + 28h
3h 45m - 1h 20m 30s
7d + 12h - 4h 30m

On 9 March 2025 the clocks in New York jumped from 2:00 AM straight to 3:00 AM. Ask what time it is one hour after 1:30 AM that morning and a calculator wired to the device clock answers 3:30 AM, while a clock-time calculator answers 2:30 AM. The date tool on this page does the second, so its answers are identical in every time zone and on every day of the year. The page has three tools: add or subtract two durations, add or subtract a duration from a date and clock time, and an expression box.

Seconds in the middle, clock time at the edges

Each duration is converted to seconds with seconds = days × 86,400 + hours × 3,600 + minutes × 60 + seconds, added or subtracted, and split back with whole division: days = total ÷ 86,400 rounded down, hours = (total ÷ 3,600 rounded down) mod 24, minutes = (total ÷ 60 rounded down) mod 60, seconds = total mod 60. Adding 2 h 45 m 30 s and 1 h 30 m 45 s is 9,930 + 5,445 = 15,375 seconds, shown as 0d : 04h : 16m : 15s with 4 hours, 16 minutes, 15 seconds spelled out underneath. Subtracting 1 h 20 m 30 s from 5 h gives 3 hours, 39 minutes, 30 seconds.

The expression box applies the same arithmetic to terms joined by + and −. 3h 45m - 1h 20m 30s is 13,500 − 4,830 = 8,670 seconds, or 2 hours, 24 minutes, 30 seconds. The longer sample 1d 2h 3m 4s + 4h 5s - 2030s + 28h comes to 206,959 seconds, which is 2 days, 9 hours, 29 minutes, 19 seconds. Fractions such as 1.5h are allowed and the final answer is rounded to a whole second.

The date tool treats the start as plain clock time, converts it to milliseconds using UTC arithmetic, adds or subtracts the duration, and reads the clock values back. No daylight saving rule is applied. 9 Mar 2025 1:30 AM plus 1 hour gives Mar 9, 2025 2:30:00 AM, plus 2 hours gives 3:30:00 AM, and plus 24 hours gives Mar 10, 2025 1:30:00 AM. On the autumn change, 2 Nov 2025 12:30 AM plus 3 hours gives Nov 2, 2025 3:30:00 AM, not 2:30. Also, 15 Jan 2025 12:00 PM plus 45 days is Mar 1, 2025 12:00:00 PM.

Limits. A day is always 24 hours here. The day, hour, minute and second fields take whole numbers from 0 to 1,000,000,000, the start year must be between 100 and 9999, and the result must land in years 1 to 9999. There are no months or years in a duration, because they vary in length; the Date Calculator covers those. Duration results cannot be negative.

How to Use This Calculator

  1. In Time Calculator, fill in Day, Hour, Minute and Second for the first and second time (blank fields count as 0), choose + Add or − Subtract and press Calculate. If the second time is larger when subtracting, the page shows Result is negative. The second time exceeds the first when subtracting.
  2. In Add or Subtract Time from a Date, set the Month, Day, Year, Hour (1 to 12), Minute, Second and AM/PM of the start. The boxes begin at your current date and time, and Use current date & time refills them. Enter the Duration to Add / Subtract, pick the direction and press Calculate. The result reads like Mar 9, 2025 2:30:00 AM.
  3. In Time Calculator in Expression, type d, h, m and s terms joined by + or −, such as 7d + 12h - 4h 30m, then press Calculate or hold Ctrl (Cmd on Mac) and press Enter. Spaces are optional.
  4. A bad entry gets a message: Could not read followed by the offending text for something like 2 days, Expression is empty., or A + or − sign needs a time value after it for a trailing sign.
  5. Each section has its own Clear button, and each result block has a Print link.

Frequently Asked Questions

Does the date tool take daylight saving into account?

No, deliberately. It adds the duration to a plain date and clock time, so the same inputs give the same answer anywhere. If you need the real elapsed time across a clock change in a particular city, adjust the answer by the one hour yourself.

Does the m in an expression mean minutes or months?

Minutes. The only letters understood are d, h, m and s, so 2 days or 3 months produce a Could not read message.

How do I turn 4 h 16 m 15 s into decimal hours?

The page shows days, hours, minutes and seconds only. Do the conversion yourself: 15,375 seconds ÷ 3,600 = 4.2708 hours, or 4 + 16 ÷ 60 + 15 ÷ 3,600.

Can I type 200 in the Minute box?

Yes in the duration fields: 200 minutes comes out as 3 hours, 20 minutes. The date tool's own Minute and Second boxes for the start time accept only 0 to 59.

Does 12:00 AM mean midnight or noon in the date tool?

Midnight. The start Hour runs 1 to 12, and 12 with AM is treated as hour 0 of the day, while 12 with PM is noon.