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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hourly_rate": "<hourly_rate>",
"ordinary_hours": "<ordinary_hours>"
},
"name": "overtime_and_premium_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD, default today | |
| hourly_rate | Yes | Ordinary hourly rate in rand | |
| sunday_hours | No | Hours worked on Sundays in the period. Default 0 | |
| 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 | Hours worked on public holidays in the period. Default 0 | |
| ordinarily_works_sunday | No | True if Sunday is a normal workday for this worker (paid 1.5x instead of 2x). Default false | |
| public_holiday_is_ordinary_workday | No | True if the holiday fell on a day the worker would normally work (BCEA s18(2)); false if not (s18(3)). Default true |