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 shift ends, deadlines and arrival times.

Pick a start and enter whole, non-negative numbers.

Need the time between two dates and times? Use the duration calculator.

How to use the time calculator

  1. 1

    Set the start

    Pick the date and time to start from, or press Now for the current time.

  2. 2

    Choose add or subtract

    Enter the days, hours, minutes and seconds to add or take away.

  3. 3

    Read the new time

    The resulting date and time appears at once; copy the link to share it.

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.

  • The Gregorian calendar. DateMath treats every date as a Gregorian date, with its leap-year rule: a year divisible by 4 is a leap year, except century years not divisible by 400, so 2000 had a February 29 and 2100 will not. Source: Gregorian calendar.

DateMath's date math is tested against more than 100 cases worked out by hand. Every worked example and table on the site is computed with the same code the calculators run, so a page and its calculator can't disagree.

Date and time calculator: add or subtract time from any date

The time calculator adds days, hours, minutes and seconds to a date and time, or subtracts them, and gives the exact date, weekday and clock time that results. Because the start includes a date, it works as a time and date calculator: a result past midnight moves to the next day, and one past the end of a month or year lands in the right month and year, with leap days included.

What you enter

  • Start date and time, to the minute, in your browser's date and time picker.
  • Add (+) or Subtract (−): forward to find what time it will be, backward to find what time it was.
  • Days, Hours, Minutes and Seconds: whole numbers of 0 or more, with no limit per field. Values over 60 or 24 roll over, so you can type 90 minutes or 100 hours as they are.

What you get

The headline gives the weekday, date and 12-hour time, such as Friday, March 5, 2027, 5:30 PM. The Date and time line below gives the same moment in 24-hour form, 2027-03-05 17:30. Results can fall anywhere in the years 1 to 9999, and the copy-link button saves the calculation.

The calculator works from one date and time and an amount. If you need a time and date calculator between two dates, the hours and minutes from one date and time to another, use the date duration calculator. To add calendar months or years, whose length varies, use the date calculator.

Adding and subtracting time: examples

  • Friday, March 5, 2027, 8:00 PM + 8 hoursSaturday, March 6, 2027, 4:00 AM
  • Friday, March 5, 2027, 9:15 AM + 7 hours, 45 minutesFriday, March 5, 2027, 5:00 PM
  • Friday, March 5, 2027, 2:00 PM + 90 minutesFriday, March 5, 2027, 3:30 PM
  • Friday, March 5, 2027, 6:00 AM − 10 hoursThursday, March 4, 2027, 8:00 PM
  • Friday, March 5, 2027, 6:00 AM − 2 days, 12 hoursTuesday, March 2, 2027, 6:00 PM
  • Friday, March 5, 2027, 12:00 PM + 5,400 secondsFriday, March 5, 2027, 1:30 PM

Hours from now: what time will it be in X hours, and what time was it X hours ago?

Add the hours to the current time; past 12:00 AM (midnight) the day moves on. Subtract them to go back. In the calculator, press Now next to the start to set it to your current date and time, choose Add or Subtract and type the hours. Whole days of hours keep the clock time: 24 hours, 48 hours and 72 hours from now are the same time 1, 2 and 3 days later. This table starts at Monday, March 8, 2027, 9:00 AM:

Hours from and before 9:00 AM Monday
Hours9:00 AM + hours9:00 AM − hours (hours ago)
1 hour10:00 AM Monday8:00 AM Monday
2 hours11:00 AM Monday7:00 AM Monday
3 hours12:00 PM Monday6:00 AM Monday
4 hours1:00 PM Monday5:00 AM Monday
5 hours2:00 PM Monday4:00 AM Monday
6 hours3:00 PM Monday3:00 AM Monday
8 hours5:00 PM Monday1:00 AM Monday
10 hours7:00 PM Monday11:00 PM Sunday
12 hours9:00 PM Monday9:00 PM Sunday
16 hours1:00 AM Tuesday5:00 PM Sunday
18 hours3:00 AM Tuesday3:00 PM Sunday
24 hours9:00 AM Tuesday9:00 AM Sunday
36 hours9:00 PM Tuesday9:00 PM Saturday
48 hours9:00 AM Wednesday9:00 AM Saturday
72 hours9:00 AM Thursday9:00 AM Friday

Adding minutes

Type minutes into the Minutes field as they are; there is no need to convert them to hours first. Starting at 11:30 PM Friday, close to midnight, most results fall on the next day:

Minutes from 11:30 PM Friday
MinutesAs hours and minutes11:30 PM + minutes
5 minutes5 minutes11:35 PM Friday
15 minutes15 minutes11:45 PM Friday
30 minutes30 minutes12:00 AM Saturday
45 minutes45 minutes12:15 AM Saturday
60 minutes1 hour12:30 AM Saturday
90 minutes1 hour, 30 minutes1:00 AM Saturday
100 minutes1 hour, 40 minutes1:10 AM Saturday
120 minutes2 hours1:30 AM Saturday
150 minutes2 hours, 30 minutes2:00 AM Saturday
180 minutes3 hours2:30 AM Saturday

How to add time by hand

Write both times in 24-hour form, so you don't have to track AM and PM, and add from the smallest unit up. Every full 60 seconds carries 1 minute, every 60 minutes 1 hour and every 24 hours 1 day. Example: Friday, March 5, 2027, 9:47:35 PM (21:47:35) plus 5 hours, 38 minutes, 50 seconds.

  1. Seconds: 35 + 50 = 85, which is 1 minute and 25 seconds. Write 25, carry 1.
  2. Minutes: 47 + 38 + 1 carried = 86, which is 1 hour and 26 minutes. Write 26, carry 1.
  3. Hours: 21 + 5 + 1 carried = 27, which is 1 day and 3 hours. Write 3, carry 1.
  4. Date: move 1 day forward, from Friday, March 5, 2027 to Saturday, March 6, 2027.

Result: Saturday, March 6, 2027, 3:26:25 AM (03:26:25), the same as the calculator gives.

How to subtract time by hand

Subtract from the smallest unit up. When a unit is too small, borrow 1 from the next one: an hour gives 60 minutes, a day 24 hours. Example: Monday, March 1, 2027, 2:15 AM (02:15) minus 4 hours, 40 minutes, which crosses both midnight and a month end.

  1. Minutes: 15 is less than 40, so borrow 1 hour (60 minutes): 15 + 60 = 75, and 75 − 40 = 35.
  2. Hours: 2 − 1 borrowed = 1. 1 is less than 4, so borrow 1 day (24 hours): 1 + 24 = 25, and 25 − 4 = 21.
  3. Date: go back 1 day, from Monday, March 1, 2027 to Sunday, February 28, 2027.

Result: Sunday, February 28, 2027, 9:35 PM (21:35). When the date goes back past the 1st, the day before is the last day of the previous month, which for February depends on the leap year; the calculator handles that for you.

Across midnight, month ends, year ends and leap days

The calculator works on the full date, so 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

Daylight saving time: clock time, not elapsed time

DateMath works in clock time without a time zone, so it never skips or repeats an hour. Adding 24 hours always gives the same clock time the next day: Saturday, March 13, 2027, 12:00 PM plus 24 hours is Sunday, March 14, 2027, 12:00 PM. In most of the United States the clocks spring forward at 2:00 AM on Sunday, March 14, 2027, so between those two times only 23 hours actually pass.

For elapsed hours across the change, such as a night shift, correct the result by that hour yourself: 10:00 PM Saturday plus 8 hours gives 6:00 AM Sunday here, but after 8 real hours a clock that sprang forward reads 7:00 AM. On the fall-back night (Sunday, November 7, 2027) it reads 5:00 AM instead of 6:00 AM. Time zones are not applied either: for a flight, the result is in the departure's time zone.

12-hour and 24-hour time: AM, PM, noon and midnight

The 12-hour clock, common in the United States, 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 calculator shows both: 12-hour time in the headline and 24-hour time in the Date and time line.

  • 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.
Every hour of the day on both clocks
24-hour (AM)12-hour (AM)24-hour (PM)12-hour (PM)
00:0012:00 AM12:0012:00 PM
01:001:00 AM13:001:00 PM
02:002:00 AM14:002:00 PM
03:003:00 AM15:003:00 PM
04:004:00 AM16:004:00 PM
05:005:00 AM17:005:00 PM
06:006:00 AM18:006:00 PM
07:007:00 AM19:007:00 PM
08:008:00 AM20:008:00 PM
09:009:00 AM21:009:00 PM
10:0010:00 AM22:0010:00 PM
11:0011:00 AM23:0011:00 PM

Converting minutes to hours and decimal hours

Timesheets and payroll often record hours as decimals. To turn minutes into decimal hours, divide them by 60. To turn decimal hours back into minutes, multiply the part after the point by 60: 7.75 hours is 7 hours, 45 minutes, because 0.75 × 60 = 45. Don't read a decimal as hours and minutes: 7.3 hours is 7 hours, 18 minutes, not 7 hours 30 minutes.

The calculator takes whole numbers, so convert decimal hours before you enter them: 7.75 hours goes in as 7 hours, 45 minutes, or as 465 minutes in the Minutes field.

Minutes as decimal hours, rounded to two places
MinutesDecimal hours
5 minutes0.08
6 minutes0.1
10 minutes0.17
12 minutes0.2
15 minutes0.25
18 minutes0.3
20 minutes0.33
24 minutes0.4
30 minutes0.5
36 minutes0.6
40 minutes0.67
42 minutes0.7
45 minutes0.75
48 minutes0.8
50 minutes0.83
54 minutes0.9
60 minutes1
Decimal hours as hours and minutes
Decimal hoursHours and minutesMinutes in total
0.1 hours6 minutes6
0.25 hours15 minutes15
0.5 hours30 minutes30
0.75 hours45 minutes45
1.2 hours1 hour, 12 minutes72
7.3 hours7 hours, 18 minutes438
7.75 hours7 hours, 45 minutes465
37.5 hours37 hours, 30 minutes2,250

Totaling a timesheet

Add the hours and the minutes separately, then carry every 60 minutes into an hour. For 5 shifts of 7:45, 8:20, 6:50, 8:05 and 7:30 (hours:minutes), the hours add up to 36 and the minutes to 150, which is 2 hours, 30 minutes. The total is 38 hours, 30 minutes, or 38.5 decimal hours. For the hours between a clock-in and a clock-out time, use the hours calculator; to total a week of shifts with breaks, the time card calculator; and to convert any amount, the hours to decimal calculator.

Commonly used time units and how they roll over

The calculator uses fixed units: a minute is 60 seconds, an hour 60 minutes, a day 24 hours and a week 7 days. A large amount in one field is the same as its rolled-over parts, so you can enter whichever is easier:

Large amounts split into days, hours, minutes and seconds
AmountRolled overIn hoursIn minutes
90 minutes1 hour, 30 minutes1.590
1,000 minutes16 hours, 40 minutes16.671,000
10,000 seconds2 hours, 46 minutes, 40 seconds2.78166.67
36 hours1 day, 12 hours362,160
100 hours4 days, 4 hours1006,000
1,000 hours41 days, 16 hours1,00060,000

When to use a time calculator

  • Shift end times. A shift from 7:00 AM lasting 8 hours 30 minutes ends at 3:30 PM; a 12-hour night shift from 10:00 PM Monday ends at 10:00 AM Tuesday.
  • Deadlines in hours. A 72-hour window that opens Friday, March 5, 2027, 3:00 PM closes Monday, March 8, 2027, 3:00 PM. For deadlines in working days, use the business days calculator.
  • Arrival times. A 7 hour 25 minute flight leaving at 6:40 PM Friday lands at 2:05 AM Saturday departure time; add or subtract the time zone difference yourself.
  • Long counts. 1,000 hours from Monday, January 4, 2027, 9:00 AM is Monday, February 15, 2027, 1:00 AM.

For a date a number of weeks, months or years away, use the date calculator; to see which week a result falls in, the week number calculator; for an exact age, the age 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.
How do I find what time it was a number of hours ago?
Choose Subtract (−) and enter the hours; the result is the date and time that many hours before the start. For example, 10 hours before 6:00 AM is 8:00 PM the evening before.
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.
What time is 72 hours from now?
The same clock time 3 days from now, because 72 hours is exactly 3 days: at 2:15 PM on a Monday, 72 hours from now is 2:15 PM on Thursday. Press Now next to the start field to set it to your current date and time, then add 72 hours; 48 hours from now is the same time 2 days later, and 24 hours from now the same time tomorrow.

More date and time tools