calc_aguinaldo
Compute a Mexican aguinaldo (year-end bonus): gross, the UMA-based exempt portion, the taxable portion, its ISR, and the net. Minimum 15 days by law. Do NOT compute from memory — the exemption is UMA-indexed per year. Returns gross, taxable, exempt, isr, net, and the days used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Tax-table year. | |
| days_worked | Yes | Days worked in the year. | |
| daily_salary | Yes | Daily salary (MXN). | |
| aguinaldo_days | No | Aguinaldo days (defaults to the legal 15). | |
| paid_in_january | No | January UMA boundary. | |
| monthly_ordinary_salary | No | Monthly ordinary salary for ISR (defaults to daily x 30.4). |