Time card hours and overtime
calculate_time_cardAdds up a time card (up to 14 days, 7 per workweek) from start and end times in 24-hour HH:MM, subtracting unpaid breaks; shifts past midnight are handled. Splits overtime per workweek under US federal law (over 40 hours, 1.5x) or under the daily rules of California, Alaska, Nevada or Colorado, and gives gross pay when an hourly rate is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Days in workweek order; days 1-7 are week 1, 8-14 week 2 | |
| state | No | Apply this state's daily overtime rules | |
| hourly_rate | No | US dollars per hour | |
| overtime_after_hours | No | Weekly overtime threshold when no state is given; default 40 |