calc_finiquito
Compute a Mexican finiquito/liquidación (severance) for a resignation or an unjustified dismissal: prorated christmas bonus, vacations, vacation premium, pending salary, and (for dismissal) 90-day + 20-day/year severance and the seniority premium, with Art. 93 exemptions and separation ISR. Do NOT compute this from memory — LFT bands, UMA exemptions, and the SDI integration factor are table-driven. Returns per-concept gross/exempt/taxable, totals, ISR, deductions, and net_total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Tax-table year. | |
| zone | No | Minimum-wage zone. | general |
| hire_date | Yes | Hire date, YYYY-MM-DD. | |
| deductions | No | Optional pass-through deductions. | |
| daily_salary | Yes | Daily salary (MXN). | |
| pending_days | No | Unpaid worked days pending. | |
| paid_in_january | No | January UMA boundary. | |
| termination_date | Yes | Termination date, YYYY-MM-DD. | |
| termination_type | Yes | Type of separation. | |
| vacation_proration | No | Vacation proration basis. | anniversary |
| prima_vacacional_pct | No | Vacation premium percentage (defaults to the legal 25%). | |
| monthly_ordinary_salary | No | Monthly ordinary salary for ISR (defaults to daily x 30.4). | |
| include_20_days_per_year | No | Include the 20-day/year dismissal indemnity. |