Calculate overtime, Sunday and public holiday pay
overtime_and_premium_payCalculates BCEA pay for a pay period: ordinary hours, weekday/Saturday overtime (1.5x), Sunday work (1.5x if ordinarily worked, else 2x), and public holiday work (s18). Flags breaches of overtime limits and checks the BCEA earnings threshold (employees above it have no statutory overtime entitlement).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, default today | |
| hourly_rate | Yes | Ordinary hourly rate in rand | |
| sunday_hours | No | ||
| ordinary_hours | Yes | Ordinary hours worked in the period | |
| overtime_hours | No | Weekday/Saturday overtime hours | |
| annual_earnings | No | Regular annual earnings, to test the BCEA threshold (optional) | |
| weeks_in_period | No | Weeks covered, used to check the 10h/week overtime cap. Default 1 | |
| ordinary_daily_hours | No | Hours in a normal shift, for public holiday minimum. Default 9 | |
| public_holiday_hours | No | ||
| ordinarily_works_sunday | No | ||
| public_holiday_is_ordinary_workday | No |