The formula behind it
elapsed = (end + endTime) − (start + startTime)- start/end
- calendar dates; times are 24-hour
The exact gap between two moments — spanning midnight, days or years — returned as days, hours and minutes with the decimal hours payroll and billing use. An end before the start is rejected rather than returning a negative 'duration' nobody can invoice.
How to use this calculator
- 1
Enter the start date and time.
- 2
Enter the end date and time.
- 3
Read the elapsed days, hours and minutes — plus decimal hours.
Worked examples
Overnight job
Jan 1 09:00 → Jan 2 10:30 → 1 d 1 h 30 min, i.e. 25.5 decimal hours.
Same-day span
09:00 → 17:15 the same day → 8 h 15 min.