محاسبهٔ حق سنوات و مزایای پایان کار — Calculate end-of-service entitlements
calculate_severanceCalculate an Iranian employee's end-of-service entitlements (حق سنوات، عیدی، مانده مرخصی) under قانون کار, using the current official minimum wage. Use this instead of computing by hand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Persian year for the minimum-wage basis. Defaults to the latest. | |
| years | No | Years of service (may be fractional). | |
| months | No | Extra months of service (0–11). | |
| contract_type | No | permanent = دائمی, fixed = موقت. Default permanent. | |
| last_salary_toman | No | Last monthly salary in TOMAN. Below the statutory minimum wage the minimum is used instead. | |
| unused_leave_days | No | Stored unused annual leave days (ماده ۶۶ ق.کار caps storage at 9 days/yr). |