Compensation for unused holiday on termination
calculate_unused_holiday_compensationCalculate the compensation for unused annual holiday paid when an Estonian employment ends (TLS § 71): holiday days earned in proportion to the qualifying days, minus days used, times the average daily pay of the six-month period (public holidays and days without pay left out). The unchanged-salary rule of holiday pay does not apply here. Give the period as period_start and period_end to have the public holidays counted.
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": {
"qualifying_days": "<qualifying_days>",
"period_pay": "<period_pay>"
},
"name": "calculate_unused_holiday_compensation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language of the readable breakdown. Pass the user's language: "et" for Estonian, otherwise "en". | en |
| days_used | No | Holiday days already used this holiday year. | |
| period_end | No | Last day of the averaging period. | |
| period_pay | Yes | Gross pay earned in the six calendar months before the month the employment ends (or the time employed, if shorter). | |
| annual_days | No | Annual holiday days in the contract (28 by law; more if agreed). | |
| days_in_year | No | Days in the holiday year: 366 for a leap year. | |
| period_start | No | First day of the averaging period (alternative to period_calendar_days). | |
| qualifying_days | Yes | Calendar days that earn holiday in the holiday year: employment days minus parental leave and agreed unpaid leave. | |
| period_absence_days | No | Days without wage in the period (sick leave, earlier holiday, unpaid leave), public holidays not included. | |
| period_calendar_days | No | Calendar days of that period. Or give period_start and period_end and the server counts the days and public holidays. | |
| period_public_holidays | No | Public holidays inside the period. Counted by the server when period_start and period_end are given. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| sources | Yes | ||
| denominator | Yes | ||
| earned_days | Yes | ||
| explanation | No | ||
| unused_days | Yes | ||
| compensation | Yes | Compensation owed, gross. | |
| daily_average | Yes | ||
| calculator_url | No | ||
| compensation_unrounded_daily | No |