Time Duration Calculator
Calculate elapsed time between two date-times after breaks
Time Duration Calculator — what it does
Calculate the elapsed time between two date-times, minus an unpaid break, and read the result as full days, remaining hours and minutes, plus a decimal hours figure. The decimal value is the one payroll and invoicing systems want, because 7 hours 30 minutes is 7.5 hours and not 7.30.
Worked example
Three timesheet entries in October 2026: a 09:00–17:30 office day with a 45-minute unpaid break, a night shift from 22:00 to 06:30 with 30 minutes off, and a two-day site visit.
| Start | End · break (min) | Days · hours · minutes | Decimal hours |
|---|---|---|---|
| 2026-10-20 09:00 | 2026-10-20 17:30 · 45 | 0 · 7 · 45 | 7.75 |
| 2026-10-20 22:00 | 2026-10-21 06:30 · 30 | 0 · 8 · 0 | 8.00 |
| 2026-10-19 08:00 | 2026-10-21 12:00 · 0 | 2 · 4 · 0 | 52.00 |
Decimal hours includes the full days (2 × 24 + 4 = 52.00), while the days/hours/minutes cells split the same span.
When this tool helps
- Calculating billable hours for a session that ran across a lunch break.
- Measuring how long an incident, deployment or process actually took.
- Working out elapsed time across midnight or across several days.
How to use it
- Enter the start date and time.
- Enter the end date and time.
- Enter any unpaid break in minutes.
- Calculate to see days, hours, minutes and decimal hours.
Accuracy, limits, and good practice
- Decimal hours is what invoices and payroll use — treating 7:30 as 7.30 hours understates the time by twelve minutes every occurrence.
- Because both ends carry a date, spans crossing midnight or several days are handled without any manual adjustment.
- Deduct the break here rather than in your head; unpaid breaks are the most common source of disputed timesheet totals.
Frequently asked questions
How do I convert minutes to decimal hours?
Divide by 60. Fifteen minutes is 0.25 hours, twenty is 0.33, and forty-five is 0.75.
Does it handle daylight saving changes?
Calculation is on the local times you enter. Across a clock change, verify the result against the actual hours worked.
What if the end time is before the start?
That indicates a data entry error rather than a negative duration; check the dates as well as the times.
What if the end time is before the start time?
All four cells show 0 and no message appears: the elapsed minutes are clamped at zero instead of going negative. The same happens when the break is longer than the span.
How is the break handled and what precision do I get?
A negative break counts as 0. The break is subtracted in minutes, the days/hours/minutes cells are whole numbers, and decimal hours is the remaining minutes ÷ 60 rounded to two decimals (7 h 45 min = 7.75). The page pre-fills "now" and "now + 8 hours" on load, so set both fields explicitly.
Related tools on this site
- Salary Converter — Convert hourly, weekly, monthly, and annual compensation values
- Break-even Calculator — Calculate break-even units and revenue
- Date Calculator — Add or subtract dates easily
Further reading: Margin, Markup, Break-even and ROI: Which Number Answers Which Question
Everything above runs inside this page. Time Duration Calculator needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
時間長度計算器能做什麼
計算兩個日期時間之間扣除無薪休息後的時長,結果以「完整天數+剩餘時分」呈現,另附十進位小時數。薪資與請款系統要的正是那個十進位數字,因為 7 小時 30 分是 7.5 小時,不是 7.30。
實際範例
2026 年 10 月的三筆工時:09:00–17:30 的辦公日、不給薪休息 45 分鐘;22:00 到 06:30 的夜班、休息 30 分鐘;以及為期兩天的現場勘查。
| 開始 | 結束 · 休息(分) | 天 · 小時 · 分鐘 | 小數小時 |
|---|---|---|---|
| 2026-10-20 09:00 | 2026-10-20 17:30 · 45 | 0 · 7 · 45 | 7.75 |
| 2026-10-20 22:00 | 2026-10-21 06:30 · 30 | 0 · 8 · 0 | 8.00 |
| 2026-10-19 08:00 | 2026-10-21 12:00 · 0 | 2 · 4 · 0 | 52.00 |
小數小時包含整天數(2 × 24 + 4 = 52.00),天/小時/分鐘三格則是同一段時間的拆解。
什麼時候用得上
- 計算跨越午休時段的可計費工時。
- 量測事故、部署或流程實際花了多久。
- 計算跨午夜或跨數日的經過時間。
使用步驟
- 輸入開始日期與時間。
- 輸入結束日期與時間。
- 輸入無薪休息分鐘數。
- 計算後查看天、時、分與十進位小時。
精確度、限制與實務建議
- 請款與薪資用的是十進位小時——把 7:30 當成 7.30 小時,每次都會少算十二分鐘。
- 兩端都帶日期,因此跨午夜或跨數日的區間不需任何手動調整。
- 休息時間請在這裡扣,不要用心算;無薪休息正是工時表總數最常起爭議的地方。
常見問題
分鐘怎麼換成十進位小時?
除以 60。十五分鐘是 0.25 小時、二十分鐘是 0.33、四十五分鐘是 0.75。
會處理日光節約時間嗎?
計算依你輸入的當地時間進行。跨越時制切換時,請與實際工作時數再核對一次。
結束時間早於開始時間怎麼辦?
那代表輸入有誤而不是負時長,請連日期一起檢查。
結束時間比開始時間早會怎樣?
四個格子都顯示 0,也沒有提示:經過的分鐘數被限制在 0 以上,不會變成負數。休息時間比整段時間還長時也是一樣。
休息時間怎麼扣?精度到哪裡?
負的休息時間當作 0。休息以分鐘扣掉,天/小時/分鐘三格都是整數,小數小時是剩餘分鐘 ÷ 60 後四捨五入到兩位小數(7 小時 45 分 = 7.75)。頁面載入時會預填「現在」與「現在 + 8 小時」,所以兩個欄位都要自己設定。
本站相關工具
延伸閱讀: 毛利率、加成率、損益兩平與投資報酬率:哪個數字回答哪個問題
以上步驟全部在這個頁面內完成,時間長度計算器 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。