An hours calculator finds the time worked between a start and an end clock time, subtracts unpaid break minutes, and converts the result to decimal hours for payroll. It accepts 24-hour times like 17:30 or 12-hour times like 5:30 pm, and it handles overnight shifts that cross midnight without any extra input.
Suppose you put the default values into Hours Calculator:
Plug those into the formula hours = end − start − break (overnight wraps past midnight) and the result is:
Start and end are parsed as clock times — 24-hour (17:30) or 12-hour with am/pm (5:30 pm) — and converted to minutes since midnight. If the end time is earlier than the start, the shift is assumed to cross midnight and 24 hours are added, which handles overnight work automatically. Break minutes are then subtracted (never below zero) and the remainder is reported three ways: hours and minutes, raw minutes, and decimal hours (minutes divided by 60), the form payroll systems multiply by an hourly rate. The weekly figure multiplies one shift by five. The calculator deliberately models a single shift with a single unpaid break; overtime rules, multiple breaks, and paid breaks are left out because they depend on the employer and jurisdiction.
Last reviewed July 2, 2026 · Editorial policy