How do I calculate the hours between two times?
Choose a start date and time, choose an end date and time, then press Calculate duration. Total hours shows the answer as a number, and Exact duration shows days, hours, minutes and seconds.
How many hours are there from 9:15 a.m. to 5:45 p.m.?
On the same date, the elapsed time is 8 hours 30 minutes, or 8.5 hours. Enter both start and end dates and times to calculate it.
Can the duration cross more than one day?
Yes. Pick an end date that is days later and the tool reports the full gap. For example, June 1 at 8:00 to June 4 at 14:30 is 3 days, 6 hours and 30 minutes.
How do I work out an overnight shift?
Set the end date to the next calendar day. A shift from 22:00 to 06:00 the next morning is 8 hours. Leaving both on the same date would put the end before the start and give an error.
Does it subtract my lunch or breaks?
No. It reports the full elapsed time between the two moments. If you took an unpaid break, subtract it yourself, for example 8.5 hours minus 0.5 hours for a half-hour break gives 8 hours.
Why did I get an error about valid times?
Either a box is empty, or the end is earlier than the start. Fill both boxes and make sure the end is later. The tool does not show a negative duration.
What happens when daylight saving time begins or ends?
The tool uses your device time zone, so a span that crosses a clock change can be an hour shorter or longer than the clock times suggest. In Spain, 28 to 29 March 2026 at noon is 23 hours.
Why is Total days a decimal?
It divides the gap by 24 hours, so a gap shorter than a day shows a fraction, such as 0.333333 for eight hours. Use Exact duration if you want whole days, hours and minutes instead.
Is it the same as a date calculator?
No. A date calculator counts whole calendar days between two dates and ignores the clock. This tool includes the time of day, so it can tell 8 hours from 9 hours on the same date.
Is anything stored or uploaded?
No. Both times are worked out in your browser on your device. Nothing is sent to a server. Pressing Clear empties the boxes and the results.
When should I not trust the result for pay or billing?
Treat it as a quick check, not a payroll record. Your employer or contract may round time, remove breaks or use another time zone. Check those rules before you rely on the number.
How do I calculate hours between two times?
Choose a start date and time, choose an end date and time, then select Calculate duration.
Can I calculate an overnight shift or subtract a break?
Yes, for an overnight shift choose the next calendar date as the end date. The calculator reports elapsed time, but it does not subtract meal breaks or unpaid time.