September 24, 10:00 PM to September 27, 4:30 AM is 2 days 6 hours 30 minutes
To find the time between two dates and times, subtract the start moment from the end moment and read the result in 24-hour days. If you start on September 24, 2026 at 10:00 PM and finish on September 27 at 4:30 AM, two full 24-hour days pass and 6 hours 30 minutes are left over, so the elapsed time is 2 days 6 hours 30 minutes. That is 54 hours 30 minutes in total, or 3,270 minutes. The calendar dates differ by 3 and the job touches 4 different dates, yet only a little more than two days actually went by.
Enter the start and end date and time in the calculator above and it shows this right away: the elapsed time, total hours, total minutes and total seconds, the count rounded up to 24-hour days, and the number of midnights passed. The chart below it shows how many hours fell on each date. Turn on "Keep counting up to now" and the end moment follows the clock, so the elapsed time grows every second.
When you need the dates and the times together
Times alone cannot tell you whether 10:00 PM to 4:30 AM is 6 hours 30 minutes or 54 hours 30 minutes. Whenever the date changes at least once, enter both the date and the time for each end.
- Deadlines stated in hours: a request received on October 16 at 3:20 PM had been open 41 hours 40 minutes by October 18 at 9:00 AM, which leaves 6 hours 20 minutes of a 48-hour window. Federal Rule of Civil Procedure 6(a)(2) says that when a period is stated in hours, you "begin counting immediately on the occurrence of the event that triggers the period". That rule covers federal civil court deadlines only, and it has its own weekend and holiday rules for the last day, so check the rule or your contract for anything else.
- Multi-day jobs, outages and machine runs: a job that starts September 24 at 10:00 PM and ends September 27 at 4:30 AM ran 54 hours 30 minutes. If a report asks for minutes, write 3,270.
- Trips: leaving Friday at 10:00 AM and getting home Monday at 6:30 PM is 3 days 8 hours 30 minutes, or 80 hours 30 minutes. This is the trip to count when you want hours away, not nights booked.
- Orders and deliveries: an order placed October 15 at 9:40 PM and delivered October 17 at 10:05 AM took 36 hours 25 minutes (1 day 12 hours 25 minutes).
- Splitting a shift across dates: working from 10:00 PM on October 16 to 7:00 AM on October 17 is 9 hours, 2 of them on the 16th and 7 on the 17th. The date columns below the calculator show that split.
How the calculation works
- Turn both entries into moments in one time zone: the calculator reads the dates and times in this device's time zone (for example America/New_York).
- Elapsed time = end moment minus start moment. Identical moments give 0 minutes. An end before the start is not calculated; you get a message instead.
- Split into days, hours and minutes with 1 day = 24 hours = 1,440 minutes = 86,400 seconds. Whole days come first, then whole hours from the remainder, then minutes.
- Total hours, minutes and seconds add the days back in. Decimal hours are total minutes divided by 60, rounded to two places.
- Rounded up to 24-hour days = elapsed time divided by 24 hours, rounded up. For 2 days 6 hours 30 minutes the leftover 6 hours 30 minutes counts as a day, giving 3.
- Midnights passed = end date minus start date. If the end is exactly 12:00 AM, that midnight counts. Dates touched is the number of calendar dates that contain at least some of the interval.
- Hours per date is the overlap between the interval and each calendar date, from 12:00 AM to the next 12:00 AM.
Formulas elapsed = end - start, days = floor(elapsed / 24 h), rounded-up days = ceiling(elapsed / 24 h), midnights = end date - start date
From September 24 at 10:00 PM to September 25 at 10:00 PM is 24 hours, to September 26 at 10:00 PM another 24, then 6 hours 30 minutes more to September 27 at 4:30 AM. That is 48 hours + 6 hours 30 minutes = 54 hours 30 minutes = 3,270 minutes, or 2 days 6 hours 30 minutes in 24-hour blocks.
Five ways to count "how many days"
The answer depends on what counts as a day. For September 24 at 10:00 PM to September 27 at 4:30 AM:
| Way of counting | Value | Where it is used |
|---|---|---|
| Full 24-hour days (the days in the elapsed time) | 2 days | Elapsed-time wording; periods stated in hours, counted from the triggering moment (FRCP 6(a)(2)) |
| Date difference = midnights passed | 3 days | Periods stated in days, where the trigger day is excluded (FRCP 6(a)(1)(A)); countdowns |
| Rounded up to 24-hour days | 3 days | Rental or parking terms that charge each started 24-hour block |
| Dates touched (first and last included) | 4 days | Number of columns on a schedule, "4-day trip" |
| Nights | 3 nights | Hotel stays (billing follows check-in and check-out rules) |
Federal Rule of Civil Procedure 6(a)(1)(A) tells you to "exclude the day of the event that triggers the period" when a period is stated in days, while 6(a)(2) starts hour-based periods at the event itself. So "within 3 days" and "within 72 hours" can end at different moments. Both rules apply only to the deadlines they govern.
Elapsed time examples
All times are America/New_York. Month ends, year ends and leap years use the real calendar.
| Start | End | Elapsed time | Total hours | Total minutes | Rounded up to 24 h | Midnights |
|---|---|---|---|---|---|---|
| 2026-09-24 23:50 | 2026-09-25 00:10 | 20 minutes | 20 minutes | 20 | 1 day | 1 |
| 2026-09-24 22:00 | 2026-09-25 22:00 | 1 day | 24 hours | 1,440 | 1 day | 1 |
| 2026-09-24 22:00 | 2026-09-27 04:30 | 2 days 6 hours 30 minutes | 54 hours 30 minutes | 3,270 | 3 days | 3 |
| 2026-10-23 10:00 | 2026-10-26 18:30 | 3 days 8 hours 30 minutes | 80 hours 30 minutes | 4,830 | 4 days | 3 |
| 2026-01-31 23:00 | 2026-02-01 01:30 | 2 hours 30 minutes | 2 hours 30 minutes | 150 | 1 day | 1 |
| 2026-12-31 22:00 | 2027-01-01 04:30 | 6 hours 30 minutes | 6 hours 30 minutes | 390 | 1 day | 1 |
| 2028-02-28 12:00 | 2028-03-01 12:00 | 2 days | 48 hours | 2,880 | 2 days | 2 |
| 2026-08-03 09:00 | 2026-09-14 17:20 | 42 days 8 hours 20 minutes | 1,016 hours 20 minutes | 60,980 | 43 days | 42 |
From 11:50 PM to 12:10 AM crosses a midnight yet lasts only 20 minutes. 2028 has a February 29, so February 28 at noon to March 1 at noon is 2 days; the same dates in 2026 give 1 day. The last row, 42 days 8 hours 20 minutes, reads as 6 weeks 8 hours 20 minutes.
Reading the hours-per-date chart
In the chart under the calculator, each vertical bar is one date, with 12:00 AM at the top and the next midnight at the bottom. The filled part is the time of your interval that falls on that date: the first date fills from the start time downward, the last date from the top to the end time. With many dates, the middle collapses into one hatched bar that shows the number of dates and their combined hours.
| Interval | First date | Middle dates | Last date | Total |
|---|---|---|---|---|
| 10/16 22:00 to 10/17 07:00 | 2 hours | — | 7 hours | 9 hours |
| 9/24 22:00 to 9/27 04:30 | 2 hours | 24 hours × 2 | 4 hours 30 minutes | 54 hours 30 minutes |
| 10/23 10:00 to 10/26 18:30 | 14 hours | 24 hours × 2 | 18 hours 30 minutes | 80 hours 30 minutes |
| 2/28 12:00 to 3/1 12:00 (2028) | 12 hours | 24 hours × 1 | 12 hours | 48 hours |
The "In 24-hour blocks" bar below cuts the same length into full 24-hour pieces. That is why the September 24–27 job touches four dates but fills only two full blocks.
Getting the same numbers in Excel
Put the start in A2 (2026-09-24 22:00) and the end in B2 (2026-09-27 04:30). Microsoft's "Calculate the difference between two dates" page says to subtract the start date and time from the end date and time, then apply the custom format [h]:mm to the result cell.
| What you want | Formula | Result |
|---|---|---|
| Elapsed time (hours:minutes) | =B2-A2 (format [h]:mm) | 54:30 |
| Total hours (decimal) | =(B2-A2)*24 | 54.5 |
| Total minutes | =(B2-A2)*1440 | 3270 |
| Total seconds | =(B2-A2)*86400 | 196200 |
| Whole days | =INT(B2-A2) | 2 |
| Midnights passed | =INT(B2)-INT(A2) | 3 |
Excel stores one day as 1, so the subtraction gives 2.2708..., meaning 2 days plus 0.2708... of a day (6 hours 30 minutes). Microsoft's "Calculate the difference between two times in Excel" page notes that with the time format codes, "hours never exceed 24", so 54 hours would show as 6:30; use [h]:mm for anything past a day. Decimal arithmetic can leave a tiny error, so wrap total minutes in =ROUND((B2-A2)*1440,0) when you need a whole number.
Time zones and daylight saving time
The calculator reads both entries in one time zone, this device's. In the United States, clocks change by law: 15 U.S.C. 260a(a) sets daylight saving time from "2 o'clock antemeridian on the second Sunday of March" until 2:00 a.m. on the first Sunday of November. A day with a clock change is 23 or 25 hours long, so the real elapsed time and the difference between two clock readings can disagree.
- Fall back, November 1, 2026: from October 31 at 10:00 PM to November 1 at 4:30 AM the clock difference is 6 hours 30 minutes, but 7 hours 30 minutes really pass because 1:00 AM to 2:00 AM happens twice.
- Spring forward, March 8, 2026: from March 7 at 10:00 PM to March 9 at 4:30 AM the clock difference is 30 hours 30 minutes, but only 29 hours 30 minutes pass, and March 8 has just 23 hours.
The calculator reports the real elapsed time and shows the clock difference separately. Times that the clock skips, such as 2:30 AM on the spring-forward date, are moved later (to 3:30 AM), and times that occur twice are calculated at their first occurrence. The calendar standard RFC 5545 puts it this way: "The duration of a week or a day depends on its position in the calendar", and across a change between standard and daylight time you must add or subtract the amount the clock jumps to get an exact duration.
For a flight or trip that crosses time zones, convert both times to one zone before entering them, or use a tool that works from airport time zones.
Common mistakes
- Subtracting only the dates: 27 - 24 = 3 days, but the real elapsed time is 2 days 6 hours 30 minutes. The date difference is the number of midnights passed.
- Adding a day for "inclusive" counting: elapsed time has no inclusive version. The same moment gives 0 minutes. The dates touched (4 here) are counted separately.
- Writing 54 hours 30 minutes as 54.3 hours: 30 minutes is 0.5 hour, so it is 54.5 hours. 54.3 hours is 54 hours 18 minutes.
- Mixing up 12:00 AM and 12:00 PM: 12:00 AM is midnight (00:00) and 12:00 PM is noon. Enter the end of a day as 12:00 AM of the next date.
- Changing the date but not the year: going from December 31 to January 1 needs the end year to move up as well, otherwise the end falls before the start and you get an error.
Limits
- Both entries are read in this device's time zone. Convert a time written in another zone first.
- A day is fixed at 86,400 seconds; leap seconds are not counted.
- Dates from 1900 to 2100 are accepted. For older dates the calculator follows the time zone data in your browser.
- The result is the total time, with no breaks, weekends or holidays removed. For paid hours with unpaid breaks, subtract those separately.
- Rounding up to 24-hour days shows one way of counting. It does not work out rental, hotel or parking charges or any legal deadline; check the terms or the rule that applies.
Sources
- 01Cornell LII: Federal Rules of Civil Procedure, Rule 6(a) Computing Time(a)(1)(A) "exclude the day of the event that triggers the period"; (a)(2)(A) "begin counting immediately on the occurrence of the event that triggers the period". Federal civil procedure only
- 02Cornell LII: 15 U.S.C. 260a, Advancement of time or changeover datesDaylight saving time begins at "2 o'clock antemeridian on the second Sunday of March" and runs to the first Sunday of November
- 03IETF RFC 5545: 3.3.6 Duration"The duration of a week or a day depends on its position in the calendar." Across a standard/daylight change, add or subtract the clock change for an exact duration
- 04Microsoft Support: Calculate the difference between two datesElapsed time between two dates and times: subtract the start from the end, then apply a custom hours-and-minutes format
- 05Microsoft Support: Calculate the difference between two times in Excel=INT((B2-A2)*24), =(B2-A2)*1440, =(B2-A2)*86400; time format codes never exceed 24 hours
Frequently asked questions
How do I calculate the time between two dates and times?
Subtract the start moment from the end moment and read the result in 24-hour days. From September 24, 2026 at 10:00 PM to September 27 at 4:30 AM, two full 24-hour days pass and 6 hours 30 minutes are left over, so it is 2 days 6 hours 30 minutes, or 54 hours 30 minutes (3,270 minutes) in total.
Can I just subtract the dates to get the number of days?
The date difference (27 - 24 = 3) is the number of midnights passed. The real elapsed time counts how many full 24-hour days fit, which is 2 days 6 hours 30 minutes here. Counting both the first and last date, the job touches 4 dates. The calculator shows all of these.
How many hours are there between two times on different days?
Enter both dates and times and read the total hours. From October 16 at 3:20 PM to October 18 at 9:00 AM it is 41 hours 40 minutes, which is 6 hours 20 minutes short of 48 hours. For a deadline set by law or contract, check how that rule counts time.
Do I add a day to include both the start and end date?
No. Elapsed time is the end moment minus the start moment, so the same moment gives 0 minutes and nothing is added. The number of calendar dates that include both the first and last date appears separately as "Calendar dates".
Does it work across midnight or a new year?
Yes. You enter the date for each end, so it handles the next day, the next month and the next year. From December 31, 2026 at 10:00 PM to January 1, 2027 at 4:30 AM is 6 hours 30 minutes. Leap days such as February 29 follow the real calendar.
What does rounding up to 24-hour days mean?
It is the elapsed time divided by 24 hours and rounded up. For 2 days 6 hours 30 minutes the leftover time counts as one more day, giving 3 days, while exactly 48 hours gives 2 days. Check the terms of any rental or parking charge for how it counts.
What happens when daylight saving time changes in the period?
The calculator counts the real time that passed in this device's time zone. If the clocks go back an hour in the period, real time is 1 hour longer than the clock difference, and if they go forward, 1 hour shorter. From October 31 at 10:00 PM to November 1 at 4:30 AM in New York it is 7 hours 30 minutes, not 6 hours 30 minutes.
How do I calculate elapsed time between two dates in Excel?
Subtract the start cell from the end cell, which gives days as a number. Total hours is =(B2-A2)*24, total minutes is =(B2-A2)*1440 and whole days is =INT(B2-A2). To show 54:30 as hours and minutes, apply the custom format described in the Excel section above.