Overtime pay
overtime_payCalculate a week of overtime pay at time and a half under the federal FLSA rule (hours over 40 in the week) or California's rules (daily overtime over 8 hours, double time over 12, the seventh consecutive day, and the weekly 40). Use rule_set federal with total hours worked in the week and any extra pay that counts toward the regular rate, such as a nondiscretionary bonus; use rule_set california with the hours worked on each of the seven days. Returns regular and overtime hours and pay and the week's total, gross before tax. Use us_paycheck_take_home with overtime_hours_per_week for take-home pay including overtime, and hourly_to_salary for converting pay without overtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_set | No | The overtime rules to apply: federal (weekly, over 40 hours) or california (daily, seventh day and weekly). Default federal. | federal |
| daily_hours | No | Hours worked on each day of the workweek, in order, up to 7 entries (california rule_set only). The seventh day counts as the seventh consecutive day only when all seven days have hours. | |
| hours_worked | No | Total hours worked in the week (federal rule_set only), 0 to 168. | |
| extra_pay_usd | No | Extra pay for the week that counts toward the regular rate, such as a nondiscretionary bonus, in US dollars (federal rule_set only). Default 0. | |
| hourly_rate_usd | Yes | Regular hourly rate in US dollars. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | The inputs as used, with defaults filled in. | |
| results | Yes | The computed numbers. Unavailable numbers are null. | |
| summary | Yes | One or two plain sentences with the headline numbers. | |
| calculator_url | Yes | The TeamPredict calculator page that shows the same calculation, where a person can change the inputs. |