nz_work_hours_calculator
Add up a timesheet of work hours, and turn them into gross pay.
Use for: 'how many hours did I work this week', 'add up my shifts',
'what will I be paid for these hours', 'I worked 22:00 to 06:00, how long
is that'.
Handles overnight shifts: a finish time at or before the start is treated as
the next day, so 22:00 to 06:00 is eight hours rather than a negative.
Args:
days: One dict per day worked, each with "start" and "finish" as "HH:MM"
in 24 hour time, optional "break_minutes" of unpaid break, and an
optional "label". Leave days off out of the list entirely.
hourly_rate: Gross pay per hour. Zero returns hours only.
Returns:
Hours for each day, the total, and GROSS pay weekly, fortnightly,
monthly and annually. For take-home pay use nz_hourly_to_salary_calculator
with the rate and the hours.
Does not apply overtime or penal rates, public holiday entitlements, or a
minimum wage check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| hourly_rate | No |