End-of-service gratuity / award
end_of_serviceCompute the end-of-service gratuity (UAE Art. 51: 21 days' basic wage per year for 5 years then 30, capped at 2 years' wage, pro rata, unpaid days excluded) or the Saudi award (Art. 84/85/87: half a month's actual wage per year for 5 years then a full month, resignation fractions ⅓/⅔/full). Returns the step-by-step computation. Example: country 'AE', start_date '2019-03-01', end_date '2026-10-31', basic_monthly_wage 8000, termination 'resignation'. Response: result with legal_basis (article) and explanation[] steps, data_confidence (high = official text; medium = translation or recent amendment via secondary source), estimated_items[], sources[] (law URLs), data_version, warnings[] and a not-legal-advice disclaimer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | country: 'AE' (UAE private sector, Decree-Law 33/2021) or 'SA' (Saudi Labor Law M/51 incl. 2025 amendments). | |
| end_date | Yes | Last day of service, YYYY-MM-DD. | |
| start_date | Yes | First day of service, YYYY-MM-DD. | |
| termination | No | How the contract ended; affects Saudi Art. 85 fractions. | termination |
| special_case | No | Saudi Art. 87 full-award cases on resignation. | |
| unpaid_leave_days | No | Days of unpaid absence to exclude from service (UAE Art. 51(4)). | |
| basic_monthly_wage | Yes | Last basic monthly wage (UAE gratuity base). | |
| total_monthly_wage | No | Last total monthly wage incl. regular allowances (Saudi award base). Omit if unknown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||