Estonian holiday pay (puhkusetasu)
calculate_holiday_payCalculate Estonian annual holiday pay (puhkusetasu) the way the law requires: finds the six-month averaging period from the holiday start, leaves public holidays and days without pay out of the divisor, counts bonuses for their earning months, and switches to the unchanged-salary rule when the monthly salary was the same in all six months (then the salary simply continues, no average). Returns the gross holiday pay, the method used in plain words, the average daily pay, the latest payment day (second-to-last working day before the holiday, TLS § 70), and the last day of the holiday with the public holidays it skips. Gross only: for net pay run calculate_salary on the amount.
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": {
"holiday_start": "<holiday_start>",
"days": "<days>"
},
"name": "calculate_holiday_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Holiday days to be paid (calendar days; public holidays inside the holiday are not holiday days and push the end out). Basic annual holiday is 28. | |
| bonuses | No | Bonuses earned over a quarter, half-year or year: only the share of earning months inside the period counts. | |
| absences | No | Days off without wage in the period as date ranges (sick leave, earlier holiday, unpaid leave). Public holidays inside are not counted twice. | |
| language | No | Language of the readable breakdown. Pass the user's language: "et" for Estonian, otherwise "en". | en |
| monthly_pay | No | Gross pay earned per month of the period, when it varied: wages, overtime, monthly bonuses. Not earlier holiday pay or sick benefit. Months outside the period are ignored. | |
| absence_days | No | Days off without wage as a plain count (public holidays not included). Added to `absences`. | |
| fixed_salary | No | Monthly gross salary that was the same in all six months of the period (no bonuses, overtime or hourly pay). Then no average is used: the salary continues (regulation no. 91 § 1 lg 1¹). | |
| holiday_start | Yes | First day of the holiday, YYYY-MM-DD. | |
| employment_start | No | First day of employment, when it falls inside the six-month period. | |
| before_first_payday_month_wage | No | The holiday starts before the first payday: the agreed monthly wage. | |
| no_pay_in_period_agreed_salary | No | No pay at all in the period (long sick leave, parental leave): the monthly wage in force now. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | ||
| year | Yes | ||
| method | Yes | average: six-month average; unchanged: the same monthly salary continues; agreedWage: no pay in the period, the agreed wage is used. | |
| sources | Yes | ||
| total_pay | Yes | ||
| gross_note | No | ||
| need_month | No | ||
| period_end | Yes | ||
| denominator | Yes | ||
| holiday_end | Yes | ||
| holiday_pay | Yes | The amount owed, gross. | |
| bonus_shares | No | ||
| period_start | Yes | ||
| calendar_days | No | ||
| daily_average | Yes | ||
| holiday_start | Yes | ||
| unchanged_pay | No | ||
| calculator_url | Yes | ||
| public_holidays | No | ||
| payment_deadline | Yes | Latest payment day: the second-to-last calendar working day before the holiday (TLS § 70 lg 2). | |
| method_explanation | Yes | ||
| average_for_comparison | No | ||
| second_to_last_workday | No | ||
| absence_days_subtracted | No | ||
| holiday_pay_unrounded_daily | No | ||
| public_holidays_inside_holiday | Yes |