calc_imss
Compute Mexican IMSS social-security contributions: the SDI (integrated daily wage by seniority) and SBC, plus employer/worker quotas for the five insurance branches. The work-risk premium (rt_premium) is an input. Provide either seniority_years (to derive the SDI) or an explicit sdi. Do NOT compute from memory — quota tables and UMA caps are table-driven. Returns sdi, sbc, employer_total, worker_total, grand_total, and a per-branch breakdown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sdi | No | Explicit integrated daily wage, if not deriving from salary. | |
| days | No | Number of days to bill. | |
| year | No | Tax-table year. | |
| zone | No | Minimum-wage zone. | general |
| rt_premium | Yes | Work-risk premium (fraction, e.g. 0.005). | |
| daily_salary | No | Daily salary (MXN); with seniority_years derives the SDI. | |
| paid_in_january | No | January UMA boundary. | |
| seniority_years | No | Completed years of seniority (for the SDI integration factor). |