compute_swiss_property_tax
Estimate the Swiss cantonal real-estate capital gains tax (Grundstückgewinnsteuer) for a property sale. Covers all 26 cantons with holding-period adjustments and Ersatzbeschaffung (replacement-residence) deferral. Educational estimate; commune surcharges and value-enhancing-improvement deductions are not modeled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canton | Yes | Canton code (ZH, BE, ..., JU). | |
| sale_price | Yes | ||
| years_held | Yes | ||
| purchase_price | Yes | ||
| ersatzbeschaffung | No | Reinvest proceeds into a replacement primary residence. | |
| ersatzbeschaffung_amount | No | Amount reinvested (caps the tax deferral). |