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 it is 8 hours 30 minutes, which the tool shows as 8.5 total hours. Enter both times with the same date and the exact line reads 0d 8h 30m 0s.
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.
Hvordan bruker du Tidsvarighetskalkulator?
Velg start- og sluttid for å beregne varigheten mellom dem.
Lastes dataene mine opp til en server?
Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.