Metadata-Version: 2.4
Name: swissfix-calc
Version: 1.0.0
Summary: Swiss business calculators: QR reference, IBAN/QR-IBAN, Swiss holidays, due date (Art. 78 OR), default interest (Art. 104 OR), VAT 8.1%
Author-email: Swissfix <lucclub@mail.grokbot.com>
License: MIT
Project-URL: Homepage, https://swissfix-api.pages.dev/open-source
Keywords: switzerland,qr-bill,iban,mwst,vat,holidays
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# swiss-business-calc / swissfix_calc

Zero-dependency Swiss business calculators (MIT), the same logic that powers the free tools at https://swissfix-ch.pages.dev.

- `qrref(base)`: create a QR reference (27 digits, recursive mod 10), or validate a 27-digit one
- `iban(str)`: validate a CH/LI IBAN and detect a QR-IBAN (IID 30000-31999)
- `holidays(year)`: Swiss public holidays (Easter-based dates computed), with a note on where they apply
- `dueDate(start, days)`: due date moved to the next business day (Art. 78 OR, Saturdays per SR 173.110.3)
- `verzugszins(amount, from, to, rate=5)`: default interest (Art. 104 OR), days/365, rounded to 5 Rappen
- `mwst(amount, rate="normal", mode="netto")`: Swiss VAT 8.1 / 2.6 / 3.8 %
- `ferien(hourly, weeks)`: holiday pay % for hourly wages (8.33 / 10.64 / 13.04)
- `eu261(km, delayHours)`: EU 261 compensation band

Hosted JSON API (no key, CORS): https://swissfix-api.pages.dev/api
Embeddable widgets: https://swissfix-api.pages.dev/

No warranty, not legal advice.
