calculate_tax
Calculate federal, cantonal, municipal, and church tax for a household. Derive social insurance and standard deductions from gross income and wealth.
Instructions
Compute federal, cantonal, municipal and church tax for a household.
Uses ESTV's detailed model: it derives social-insurance contributions and
standard deductions from the gross figures, so you only need income,
wealth and family situation. Call list_deductions first if you want to
supply pillar 3a, mortgage interest or other real deductions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age1 | No | ||
| age2 | No | ||
| wealth | No | Net taxable wealth at year end, CHF. | |
| income1 | Yes | Annual income of person 1, CHF. Gross salary when income_type1='employed'. | |
| income2 | No | Annual income of the spouse, CHF. Only used for married/registered partners. | |
| language | No | de | |
| location | Yes | Tax location id, postal code or municipality name. | |
| tax_year | No | ||
| deductions | No | Overrides for the ESTV budget sheet, keyed by the ids from list_deductions, e.g. {'PRAEMIEN3A': 7258}. | |
| confession1 | No | none | |
| confession2 | No | ||
| income_type1 | No | employed | |
| income_type2 | No | employed | |
| relationship | No | single | |
| children_ages | No | Age of each dependent child, e.g. [4, 9]. | |
| include_breakdown | No | Include the line-by-line derivation of taxable income. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||