Work Session Hours and Amount
Add up work sessions from start, end and break times, with the amount at an hourly rate, the average per row and the time above an entered per-row limit.
Enter a finite value within the formula’s domain and supported numeric range.
Calculation and assumptions
minutes=Σ((end−start+1440) mod 1440−break); hours=minutes/60; amount=round(hours·rate).
At most 100 independent sessions, each shorter than 24 hours; equal start and end means zero. End before start crosses midnight. Break cannot exceed duration. Overlaps and dates are not checked. Rate has at most two decimals; amount rounds once. Overtime, tax and employment rules are excluded. In one chosen two-decimal currency; no taxes or current market rates are supplied.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
minutes=Σ((end−start+1440) mod 1440−break); hours=minutes/60; amount=round(hours·rate).
What assumptions apply?
At most 100 independent sessions, each shorter than 24 hours; equal start and end means zero. End before start crosses midnight. Break cannot exceed duration. Overlaps and dates are not checked. Rate has at most two decimals; amount rounds once. Overtime, tax and employment rules are excluded. In one chosen two-decimal currency; no taxes or current market rates are supplied.
How precise are the results?
Monetary totals use two decimal places, with exact halves rounded away from zero at the steps described. Ratios and other numbers show up to ten significant digits. Display precision does not improve input accuracy. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Can a shift run past midnight?
Yes. An end time earlier than the start time is treated as the next day, so 22:00 to 06:00 is eight hours before the unpaid break.
How do I get overtime against a daily or weekly target?
Enter each day as a row and the daily target as the limit: 08:00–17:30 with a 30 min break is 9 h, so 60 min above an 8 h target. For a week the balance is actual − target hours, e.g. 42.5 − 40 = +2.5 h; a negative result means hours are missing. Yearly hours after leave and holidays are in the annual work capacity calculator.
How we verified this calculator
The calculator is checked against 1 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Rows: start HH:MM, end HH:MM, unpaid break minutes; separate by new lines or semicolons = 22:00 06:30 30; 13:00 21:00 0
Entered hourly rate (/h) = 25.5
Workdays per week (optional; the sessions above are one day) = 5
Limit per row (h, optional; e.g. a daily norm) = 7.5
|
Total worked minutes (min): 960
Total decimal hours (h): 16
Amount at the entered hourly rate: 408.00
Average per row (min): 480
|