When two times need a gap
Shift lengths, flight legs seen by clock, overnight sleep, study sessions and machine run times are all described by a start and an end on a clock. The subtraction is simple within a day and error-prone across midnight. This page takes two times in the 24-hour format HH:MM and returns the minutes between them. A selector says whether the end time is on the same day or the next day. Because it works with clock times alone, it does not need dates, which keeps it fast for quick checks. It also leaves out everything a date would bring, such as time zones and daylight saving.
The method
Each time is turned into minutes after midnight: hours times 60, plus the minutes. The difference is the end minutes minus the start minutes. If you choose Next day, the page adds 1,440 minutes, the length of a full day, to that difference. It does not guess. The choice is explicit, so a time that looks earlier on the clock is not silently treated as the following day. This is why an overnight span needs the setting, and why entering 01:00 as an end after a 23:30 start gives a sensible answer only with Next day selected.
The default overnight example
The page opens with a start of 23:30, an end of 01:00 and the end set to the next day. The start is 23 × 60 + 30 = 1,410 minutes after midnight, and the end is 1 × 60 = 60. The difference of 60 minus 1,410 is minus 1,350, and adding 1,440 gives 90 minutes. That is an hour and a half, which matches the intuitive count: 30 minutes to midnight and 60 minutes after. The example shows why the next-day setting exists, since without it the raw subtraction does not describe a span that crosses midnight.
Daytime shifts
For a shift from 09:15 to 17:45 on the same day, set the end to Same day. The start is 555 minutes after midnight and the end is 1,065, so the page returns 510 minutes. That is 8 hours and 30 minutes. A standard 09:00 to 17:00 day returns 480 minutes, or 8 hours. To get pay hours, subtract unpaid breaks yourself: with a 30 minute lunch, the 510 minutes become 480. Convert minutes to decimal hours by dividing by 60, so 510 minutes is 8.5 hours. Many payroll systems want decimal hours, and a quick division avoids reading 8:30 as 8.30.
Overnight shifts and sleep
A night shift from 22:00 to 06:00 needs the Next day setting. The start is 1,320 minutes and the end is 360, so the raw difference is minus 960, and adding 1,440 returns 480 minutes, an 8 hour shift. Sleep tracking works the same way: bedtime 23:15 and wake time 06:45 give 450 minutes, or 7.5 hours, with Next day selected. The page measures the clock gap and does not know whether you slept the whole time. It reports the elapsed minutes between the two times and nothing about rest, health or work law. Other examples follow the same pattern: a laundry cycle from 21:40 to 22:55 is 75 minutes, and a bus leg from 14:20 to 15:05 is 45. For span checks in a game, a recipe or a lab, the same subtraction applies, and minutes keep the arithmetic exact. When several spans must be added, such as three sessions of 75, 45 and 90 minutes, add the minutes to 210 and convert once to 3.5 hours.
What the page cannot see
Clock times alone cannot reveal a time zone or a daylight saving change. On the night clocks move forward, a span from 01:00 to 03:00 on the clock lasts one real hour, and on the night they move back, a span across the repeated hour is an hour longer than the clock difference. The page ignores that. It also cannot represent a span of more than a day, because the only adjustment available is one day. For multi-day durations or any work across time zones, use dates and a calculator that takes them.
24-hour format and midnight
Times are entered as HH:MM on a 24-hour clock, so 1:30 p.m. is 13:30. Midnight can be written 00:00. A start at 00:00 and an end at 00:00 on the same day gives zero minutes, while the same times with Next day selected represent a full day of 1,440 minutes. Convert 12-hour times carefully: 12:15 a.m. is 00:15 and 12:15 p.m. is 12:15. Mixing up noon and midnight is the most common mistake with clock subtraction, and it produces answers that are off by exactly 12 hours. A quick sanity check is to ask whether the answer is plausible: a shift that comes out at 20 hours or 4 hours when you expected 8 usually points to an AM and PM slip or a wrongly chosen day setting. Re-enter both times in 24-hour form before trusting the number.
From minutes to hours and pay
The answer is in minutes, which is exact and easy to add. To make hours and minutes, divide by 60 and take the remainder: 90 minutes is 1 hour 30 minutes, and 510 is 8 hours 30 minutes. To make decimal hours, divide by 60 without a remainder, giving 1.5 and 8.5. Totals across several spans are best added in minutes before converting, to avoid rounding errors. If you track billable time in six-minute units, divide the minutes by 6 and round up or down according to your own rules, since the page applies no rounding policy.
Whole-minute times and spans under a day
The page works only with whole-minute times in the format shown and with a difference of less than a day plus the next-day option. It does not know dates, time zones, leap seconds or daylight saving changes, and it does not subtract breaks. For work records with legal significance, check the figure against the rules of your employer or jurisdiction. Rounding rules for paid time, minimum shift lengths and unpaid breaks all differ, and none are applied here. The page is best used as an exact arithmetic check on two clock readings.