Time Calculator
Add or subtract days, hours, minutes and seconds from a date and time. The result shows the new date, its weekday and the time, so you can work out deadlines, arrival times and what time it was a few hours ago.
Pick a start and enter whole, non-negative numbers.
Need the time between two dates and times? Use the duration calculator.
How DateMath adds time
DateMath adds the days, hours, minutes and seconds to the start as one amount, so values above 24 hours or 60 minutes roll over and a result past midnight moves to the right date, month and year. Times are clock times without a time zone, so adding 24 hours always gives the same clock time on the next day.
It follows the Gregorian calendar. Their rules and sources, and how DateMath tests its results, are on the About page.
Adding hours to the current time
Press Now to start from your current date and time, choose Add or Subtract and type the hours. Past midnight the day moves on: 9:00 AM Monday plus 30 hours is 3:00 PM Tuesday. Any field takes amounts over 24 or 60, so 90 minutes or 100 hours go in as they are.
| Hours | 9:00 AM + hours | 9:00 AM − hours |
|---|---|---|
| 1 hour | 10:00 AM Monday | 8:00 AM Monday |
| 3 hours | 12:00 PM Monday | 6:00 AM Monday |
| 6 hours | 3:00 PM Monday | 3:00 AM Monday |
| 8 hours | 5:00 PM Monday | 1:00 AM Monday |
| 12 hours | 9:00 PM Monday | 9:00 PM Sunday |
| 18 hours | 3:00 AM Tuesday | 3:00 PM Sunday |
| 24 hours | 9:00 AM Tuesday | 9:00 AM Sunday |
| 36 hours | 9:00 PM Tuesday | 9:00 PM Saturday |
The headline shows the weekday, date and 12-hour time; the line below it the same moment in 24-hour form, which is easier to copy into a log or a spreadsheet.
Why 1:45 plus 1:30 is 3:15, not 2:75
Time carries at 60 and 60, not at 100. To add by hand, write both times in 24-hour form and add from the smallest unit up: every 60 seconds carry a minute, every 60 minutes an hour and every 24 hours a day. Friday, March 5, 2027, 9:47:35 PM (21:47:35) plus 5 hours, 38 minutes, 50 seconds:
- Seconds: 35 + 50 = 85, which is 1 minute and 25 seconds. Write 25, carry 1.
- Minutes: 47 + 38 + 1 carried = 86, which is 1 hour and 26 minutes. Write 26, carry 1.
- Hours: 21 + 5 + 1 carried = 27, which is 1 day and 3 hours. Write 3, carry 1.
- Date: move 1 day forward, from Friday, March 5, 2027 to Saturday, March 6, 2027.
Result: Saturday, March 6, 2027, 3:26:25 AM, the same as the calculator gives.
Subtracting across midnight and a month end
Subtracting works the other way: when a unit is too small, borrow from the next one, an hour for 60 minutes and a day for 24 hours. Monday, March 1, 2027, 2:15 AM minus 4 hours, 40 minutes:
- Minutes: 15 is less than 40, so borrow 1 hour (60 minutes): 15 + 60 = 75, and 75 − 40 = 35.
- Hours: 2 − 1 borrowed = 1. 1 is less than 4, so borrow 1 day (24 hours): 1 + 24 = 25, and 25 − 4 = 21.
- Date: go back 1 day, from Monday, March 1, 2027 to Sunday, February 28, 2027.
Result: Sunday, February 28, 2027, 9:35 PM. Going back past the 1st lands on the last day of the month before, which for February depends on the leap year; the calculator works on the full date, so it handles that and the year end for you.
Across midnight, month ends, year ends and leap days
A result past midnight lands on the right day, month and year, and February has 29 days only in leap years.
- Friday, March 5, 2027, 10:45 PM + 3 hours, 30 minutesSaturday, March 6, 2027, 2:15 AM
- Friday, April 30, 2027, 9:00 PM + 5 hoursSaturday, May 1, 2027, 2:00 AM
- Sunday, February 28, 2027, 6:00 PM + 12 hoursMonday, March 1, 2027, 6:00 AM
- Monday, February 28, 2028, 6:00 PM + 12 hoursTuesday, February 29, 2028, 6:00 AM
- Wednesday, March 1, 2028, 3:00 AM − 4 hoursTuesday, February 29, 2028, 11:00 PM
- Friday, December 31, 2027, 11:59 PM + 1 minuteSaturday, January 1, 2028, 12:00 AM
- Saturday, January 1, 2028, 2:00 AM − 3 hoursFriday, December 31, 2027, 11:00 PM
Saving the result to your calendar
Under the result, "Add to calendar (.ics)" saves the new date and time as a calendar event. Open the file and Google Calendar, Apple Calendar or Outlook adds it, with the calculation in the notes and a link back to it. The event is set to the clock time shown, so it stays at that time on your calendar.
It is made for deadlines counted in hours. A 72-hour return or response window that opens Friday, March 5, 2027, 3:00 PM closes Monday, March 8, 2027, 3:00 PM: calculate it once, save it, and the reminder is in your calendar instead of on a note.
Daylight saving: clock time, not elapsed time
DateMath adds clock time without a time zone, so 24 hours later is always the same clock time on the next day, and a shared link gives everyone the same answer. Real elapsed time differs on the two nights a year the clocks change. In most of the US they spring forward at 2:00 AM on Sunday, March 14, 2027: a shift from 10:00 PM Saturday plus 8 hours shows 6:00 AM Sunday, but after 8 real hours the clock reads 7:00 AM. On the fall-back night the clock reads one hour earlier instead.
Time zones are not applied either: a flight's arrival comes out in the departure's zone. The time zone converter reads it on the other clock.
12-hour and 24-hour time: AM, PM, noon and midnight
The 12-hour clock uses AM from midnight until just before noon and PM from noon until just before midnight; the 24-hour clock numbers the hours 00:00 to 23:00. The headline shows 12-hour time and the Date and time line 24-hour time.
- Midnight is 12:00 AM, or 00:00. It starts a day, so 1 hour after 11:00 PM Friday is 12:00 AM Saturday.
- Noon is 12:00 PM, or 12:00.
- From 12-hour to 24-hour: add 12 to PM hours from 1 to 11, so 3:30 PM is 15:30. From 24-hour to 12-hour: subtract 12 from hours 13 to 23 and write PM.
- There is no 24:00 in the calculator: the end of a day is 00:00 on the next day.
| 24-hour (AM) | 12-hour (AM) | 24-hour (PM) | 12-hour (PM) |
|---|---|---|---|
| 00:00 | 12:00 AM | 12:00 | 12:00 PM |
| 01:00 | 1:00 AM | 13:00 | 1:00 PM |
| 02:00 | 2:00 AM | 14:00 | 2:00 PM |
| 03:00 | 3:00 AM | 15:00 | 3:00 PM |
| 04:00 | 4:00 AM | 16:00 | 4:00 PM |
| 05:00 | 5:00 AM | 17:00 | 5:00 PM |
| 06:00 | 6:00 AM | 18:00 | 6:00 PM |
| 07:00 | 7:00 AM | 19:00 | 7:00 PM |
| 08:00 | 8:00 AM | 20:00 | 8:00 PM |
| 09:00 | 9:00 AM | 21:00 | 9:00 PM |
| 10:00 | 10:00 AM | 22:00 | 10:00 PM |
| 11:00 | 11:00 AM | 23:00 | 11:00 PM |
Decimal hours and other units
The fields take whole numbers, so convert decimal hours first: 7.75 hours is 7 hours, 45 minutes, or 465 minutes in the Minutes field. The hours to decimal calculator converts any amount both ways. To add up several amounts of hours and minutes, use the hours and minutes calculator; for the time from one date and time to another, the date duration calculator; and for months or years, whose length varies, the date calculator.
Frequently asked questions
- How do I add hours to a time?
- Enter the start date and time, choose Add (+) and type the hours; the calculator shows the new date and time. It carries past midnight automatically, so 8:00 PM plus 8 hours is 4:00 AM the next day.
- What time was it a number of hours ago?
- Press Now, choose Subtract (−) and enter the hours: the calculator shows the date and time that many hours before now. For example, 10 hours before 6:00 AM is 8:00 PM the evening before, and 5 hours before 2:00 PM is 9:00 AM.
- How do I add minutes to a time?
- Type them in the Minutes field as they are; there is no need to convert them to hours first. 150 minutes is 2 hours 30 minutes, so 11:00 AM plus 150 minutes is 1:30 PM.
- Can I enter more than 24 hours or 60 minutes?
- Yes. Any whole number works and rolls over into the next unit: 90 minutes is treated as 1 hour 30 minutes and 36 hours as 1 day 12 hours.
- Can I enter decimal hours such as 7.5?
- No, the fields take whole numbers only, so convert first. 7.5 hours is 7 hours 30 minutes: enter 7 in Hours and 30 in Minutes, or 450 in Minutes. The hours to decimal calculator converts any decimal hours to hours and minutes.
- Is 12:00 AM midnight or noon?
- 12:00 AM is midnight, the start of the day (00:00 on a 24-hour clock), and 12:00 PM is noon (12:00). The calculator shows 12-hour time in its headline and 24-hour time in the Date and time line.
- How do I convert 24-hour time to 12-hour time?
- Subtract 12 from hours 13 to 23 and add PM: 15:30 is 3:30 PM. Hours 01 to 11 are AM as written, 00 is 12 AM (midnight) and 12 is 12 PM (noon).
- What happens when I add 24 hours across a daylight saving change?
- You get the same clock time on the next day. The calculator uses clock times without a time zone, so it does not add or remove the hour the clocks move; across a spring-forward night only 23 hours actually pass between those two times.
- How do I find the time between two dates and times?
- Use the date duration calculator: enter both dates and times and it shows the difference in days, hours and minutes, plus the totals. The time calculator works the other way, from one date and time and an amount.
- How do I put the result in Google Calendar or Outlook?
- Press "Add to calendar (.ics)" under the result. It saves an event file at the resulting date and time, with the calculation in its notes; open it and your calendar app adds the event. Google Calendar on a computer imports it under Settings, Import & export.