Documentation about the centjes-switzerland set-aside command, for checking whether enough money is set aside for taxes
centjes-switzerland set-aside compares what is set aside for this year's taxes with what they will cost, and ends with what to save or pre-pay.
It computes the year's taxes report first, with the settings of the taxes command, so it fails wherever the tax declaration would. It needs these things from the ledger:
Revenue is what the taxes report declares: every income account without the undeclared tag. SVA, cantonal and federal taxes each cost a share of it.
Every asset and liability account with a balance is tagged either taxable or not-taxable, like a third pillar account. The Zürich wealth tax is computed from the taxable ones, valued at the ESTV's rates.
Reserve accounts hold the money that is set aside, and count with their balance.
With these settings in switzerland.yaml:
first-name: John
last-name: Doe
ahv-id: '7561111222233'
third-pillar-assets-account: assets:pillar-3a
set-aside:
sva:
rate: 0.12
reserves:
- assets:sva
cantonal:
rate: 0.08
reserves:
- expenses:taxes:cantonal
federal:
rate: 0.02
reserves:
- assets:federal
wealth:
reserves:
- assets:wealth-tax
and this ledger, the report for 2026 looks like this:
currency CHF 0.01
tag undeclared
tag taxable
tag not-taxable
tag deductible
tag not-deductible
account equity:opening-balances
account assets:bank
+ attach bank-statement.pdf
+ tag taxable
account assets:pillar-3a
+ attach pillar-3a-statement.pdf
+ tag not-taxable
account assets:sva
+ attach bank-statement.pdf
+ tag taxable
account assets:federal
+ attach bank-statement.pdf
+ tag taxable
account assets:wealth-tax
+ attach bank-statement.pdf
+ tag taxable
account assets:movables
+ attach last-declaration.pdf
+ tag taxable
account assets:machinery
+ attach last-declaration.pdf
+ tag taxable
account expenses:rent:homeoffice
account expenses:rent:private
account expenses:taxes:cantonal
account income:clients
account income:gifts
+ tag undeclared
2025-12-31
| Opening balances
* assets:bank +400000 CHF
* assets:pillar-3a +50000 CHF
* assets:machinery +3000 CHF
* assets:movables +0 CHF
* equity:opening-balances -453000 CHF
2026-03-31
| Invoice paid
* assets:bank +60000 CHF
* income:clients -60000 CHF
+ attach invoice.pdf
2026-05-10
| Birthday gift, which is not revenue
* assets:bank +500 CHF
* income:gifts -500 CHF
2026-06-30
| Saving for taxes
* assets:bank -10000 CHF
* assets:sva +6000 CHF
* assets:federal +1000 CHF
* assets:wealth-tax +1000 CHF
* expenses:taxes:cantonal +2000 CHF
+ tag not-deductible
2026-07-31
| Rent, a quarter of which is for the home office
* assets:bank -4800 CHF
* expenses:rent:homeoffice +1200 CHF
* expenses:rent:private +3600 CHF
+ tag deductible
2026-09-30
| Third pillar contribution
* assets:bank -5000 CHF
* assets:pillar-3a +5000 CHF
+ tag deductible
+ attach pillar-3a-receipt.pdf
Wealth tax 2026, on wealth of 2026-12-31
Taxable wealth 451700.00 CHF
Simple wealth tax 169.70 CHF
Cantonal Steuerfuss 95 % -161.22 CHF
Municipal Steuerfuss 119 % -201.94 CHF
assets:wealth-tax 1000.00 CHF
Surplus 636.84 CHF
SVA 2026
Revenue 60000.00 CHF
liabilities:taxes:sva 12 % -7200.00 CHF
assets:sva 6000.00 CHF
Surplus -1200.00 CHF
Cantonal 2026
Revenue 60000.00 CHF
liabilities:taxes:cantonal 8 % -4800.00 CHF
expenses:taxes:cantonal 2000.00 CHF
Surplus -2800.00 CHF
Federal 2026
Revenue 60000.00 CHF
liabilities:taxes:federal 2 % -1200.00 CHF
assets:federal 1000.00 CHF
Surplus -200.00 CHF
Pillar 3a 2026
Revenue 60000.00 CHF
Business expenses -2400.00 CHF
SVA -7200.00 CHF
Net earned income 50400.00 CHF
Limit 20 % 10080.00 CHF
Contributions -5000.00 CHF
Room left 5080.00 CHF
To do
SVA: save 1200.00 CHF (1200.00 CHF short), into assets:sva.
Cantonal: pre-pay 2800.00 CHF (2800.00 CHF short), booked on expenses:taxes:cantonal.
Federal: save 200.00 CHF (200.00 CHF short), into assets:federal.
Wealth tax: 636.84 CHF more set aside than needed.
Pillar 3a: pay in 5000.00 CHF (5080.00 CHF left), into assets:pillar-3a, before the end of the year.
Third pillar
Someone who is self-employed and not in a pension fund can pay a fifth of their net earned income into the third pillar, up to a maximum that the BSV sets each year. The net earned income is the revenue minus the business expenses and SVA. The revenue, the business expenses, which include depreciation, and the contributions are what the taxes report declares. SVA counts at its set-aside rate, so the limit is only on the safe side when that rate does not under-estimate SVA.
The section ends with the room that is left after this year's contributions, and the to-do list says how much to pay in, rounded down to whole hundreds, or exactly what is left when that is less than a hundred.
centjes-switzerland set-aside [--year YYYY] [--year YYYY]
--year the year to check the set-asides of, default: this year
--year the year to produce the report for
the share of revenue that is set aside for this tax, between 0 and 1
example: 0.12
set-aside.sva.rate:
# or null
<number>
the accounts that money for this tax is moved or paid into
default: []
set-aside.sva.reserves:
# or null
- <string>
the share of revenue that is set aside for this tax, between 0 and 1
example: 0.12
set-aside.cantonal.rate:
# or null
<number>
the accounts that money for this tax is moved or paid into
default: []
set-aside.cantonal.reserves:
# or null
- <string>
the share of revenue that is set aside for this tax, between 0 and 1
example: 0.12
set-aside.federal.rate:
# or null
<number>
the accounts that money for this tax is moved or paid into
default: []
set-aside.federal.reserves:
# or null
- <string>
the municipality you live in, by its number from the Federal Statistical Office, for its Steuerfuss
default: 261
set-aside.wealth.municipality:
# or null
<integer> # 64 bit signed integer
tag of asset and liability accounts that count as wealth
default: "taxable"
set-aside.wealth.tag-taxable:
# or null
<string>
tag of asset and liability accounts that do not count as wealth, like a third pillar
default: "not-taxable"
set-aside.wealth.tag-not-taxable:
# or null
<string>
accounts shared with someone who is taxed separately, and the share of them that is yours, between 0 and 1
default: {}
set-aside.wealth.owned:
# or null
<key>:
<number>
the accounts that money for wealth tax is moved into
default: []
set-aside.wealth.reserves:
# or null
- <string>
your last name
last-name:
# or null
<string>
your first name
first-name:
# or null
<string>
The AHV identifier.
example: 7461111222233
ahv-id:
# or null
<string>
the year to produce the report for
year:
# or null
<integer>
tag to use for undeclared asset accounts
default: "undeclared"
tag-undeclared:
# or null
<string>
tag to use for deductible purchases
default: "deductible"
tag-deductible:
# or null
<string>
tag to use for non-deductible purchases
default: "not-deductible"
tag-not-deductible:
# or null
<string>
tag to use for tax-deductible purchases
default: "tax-deductible"
tag-tax-deductible:
# or null
<string>
tag to use for non-tax-deductible purchases
default: "not-tax-deductible"
tag-not-tax-deductible:
# or null
<string>
the account to use for third pillar assets
default: "assets:third-pillar"
third-pillar-assets-account:
# or null
<string>
the account to use for third pillar insurance expenses
default: "expenses:insurance:third-pillar"
third-pillar-insurance-expenses-account:
# or null
<string>
the account to use for accident insurance expenses
default: "expenses:insurance:accident"
accident-insurance-expenses-account:
# or null
<string>
the account to use for daily allowance insurance expenses
default: "expenses:insurance:daily-allowance"
daily-allowance-insurance-expenses-account:
# or null
<string>
the account to use for homeoffice expenses
default: "expenses:rent:homeoffice"
homeoffice-expenses-account:
# or null
<string>
the account to use for private homeoffice expenses
default: "expenses:rent:private"
homeoffice-private-expenses-account:
# or null
<string>
the account to use for electricity expenses
default: "expenses:electricity:homeoffice"
electricity-expenses-account:
# or null
<string>
the account to use for private electricity expenses
default: "expenses:electricity:private"
electricity-private-expenses-account:
# or null
<string>
the account to use for phone expenses
default: "expenses:phone:professional"
phone-expenses-account:
# or null
<string>
the account to use for private phone expenses
default: "expenses:phone:private"
phone-private-expenses-account:
# or null
<string>
the account to use for travel expenses
default: "expenses:travel:professional"
travel-expenses-account:
# or null
<string>
the account to use for private travel expenses
default: "expenses:travel:private"
travel-private-expenses-account:
# or null
<string>
the account to use for internet expenses
default: "expenses:internet:homeoffice"
internet-expenses-account:
# or null
<string>
the account to use for private internet expenses
default: "expenses:internet:private"
internet-private-expenses-account:
# or null
<string>
the account of the VAT paid on purchases
default: "expenses:VAT"
vat-expenses-account:
# or null
<string>
the account to use for donations
default: "expenses:charity"
donations-account:
# or null
<string>
the account to use for health insurance premiums
default: "expenses:insurance:health"
health-insurance-premiums-account:
# or null
<string>
the account to use for other health expenses
default: "expenses:health:other"
health-other-account:
# or null
<string>
the account to use for dentist expenses
default: "expenses:health:dentist"
health-dentist-account:
# or null
<string>
the account to use for doctor and prescription expenses
default: "expenses:health:doctor"
health-doctor-account:
# or null
<string>
the account to use for hospital stay expenses
default: "expenses:health:hospital"
health-hospital-account:
# or null
<string>
the account to use for therapy and cure expenses
default: "expenses:health:therapy"
health-therapy-account:
# or null
<string>
the account to use for daycare expenses
default: "expenses:daycare"
daycare-account:
# or null
<string>
the account to use for education expenses
default: "expenses:education"
education-account:
# or null
<string>
the account to use for movables assets
default: "assets:movables"
movables-assets-account:
# or null
<string>
the expenses account for movables purchases
default: "expenses:movables"
movables-expenses-account:
# or null
<string>
the depreciation rate for movables (e.g. 0.25 for 25%)
default: 1 % 4
movables-depreciation-rate:
# or null
<string>
the account to use for machinery assets
default: "assets:machinery"
machinery-assets-account:
# or null
<string>
the expenses account for machinery purchases
default: "expenses:machinery"
machinery-expenses-account:
# or null
<string>
the depreciation rate for machinery (e.g. 0.4 for 40%)
default: 2 % 5
machinery-depreciation-rate:
# or null
<string>
Usage: centjes-switzerland set-aside [--year YYYY] [--year YYYY]
compare what is set aside for taxes with what they will cost
Available settings:
Show this help text
switch: -h|--help
the year to check the set-asides of, default: this year
option: --year YYYY
the share of revenue that is set aside for this tax, between 0 and 1
config:
set-aside.sva.rate: # or null
<number>
example: 0.12
the accounts that money for this tax is moved or paid into
config:
set-aside.sva.reserves: # or null
- <string>
default: []
the share of revenue that is set aside for this tax, between 0 and 1
config:
set-aside.cantonal.rate: # or null
<number>
example: 0.12
the accounts that money for this tax is moved or paid into
config:
set-aside.cantonal.reserves: # or null
- <string>
default: []
the share of revenue that is set aside for this tax, between 0 and 1
config:
set-aside.federal.rate: # or null
<number>
example: 0.12
the accounts that money for this tax is moved or paid into
config:
set-aside.federal.reserves: # or null
- <string>
default: []
the municipality you live in, by its number from the Federal Statistical Office, for its Steuerfuss
config:
set-aside.wealth.municipality: # or null
<integer> # 64 bit signed integer
default: 261
tag of asset and liability accounts that count as wealth
config:
set-aside.wealth.tag-taxable: # or null
<string>
default: "taxable"
tag of asset and liability accounts that do not count as wealth, like a third pillar
config:
set-aside.wealth.tag-not-taxable: # or null
<string>
default: "not-taxable"
accounts shared with someone who is taxed separately, and the share of them that is yours, between 0 and 1
config:
set-aside.wealth.owned: # or null
<key>:
<number>
default: {}
the accounts that money for wealth tax is moved into
config:
set-aside.wealth.reserves: # or null
- <string>
default: []
your last name
config:
last-name: # or null
<string>
your first name
config:
first-name: # or null
<string>
The AHV identifier.
config:
ahv-id: # or null
<string>
example: 7461111222233
the year to produce the report for
option: --year YYYY
config:
year: # or null
<integer>
tag to use for undeclared asset accounts
config:
tag-undeclared: # or null
<string>
default: "undeclared"
tag to use for deductible purchases
config:
tag-deductible: # or null
<string>
default: "deductible"
tag to use for non-deductible purchases
config:
tag-not-deductible: # or null
<string>
default: "not-deductible"
tag to use for tax-deductible purchases
config:
tag-tax-deductible: # or null
<string>
default: "tax-deductible"
tag to use for non-tax-deductible purchases
config:
tag-not-tax-deductible: # or null
<string>
default: "not-tax-deductible"
the account to use for third pillar assets
config:
third-pillar-assets-account: # or null
<string>
default: "assets:third-pillar"
the account to use for third pillar insurance expenses
config:
third-pillar-insurance-expenses-account: # or null
<string>
default: "expenses:insurance:third-pillar"
the account to use for accident insurance expenses
config:
accident-insurance-expenses-account: # or null
<string>
default: "expenses:insurance:accident"
the account to use for daily allowance insurance expenses
config:
daily-allowance-insurance-expenses-account: # or null
<string>
default: "expenses:insurance:daily-allowance"
the account to use for homeoffice expenses
config:
homeoffice-expenses-account: # or null
<string>
default: "expenses:rent:homeoffice"
the account to use for private homeoffice expenses
config:
homeoffice-private-expenses-account: # or null
<string>
default: "expenses:rent:private"
the account to use for electricity expenses
config:
electricity-expenses-account: # or null
<string>
default: "expenses:electricity:homeoffice"
the account to use for private electricity expenses
config:
electricity-private-expenses-account: # or null
<string>
default: "expenses:electricity:private"
the account to use for phone expenses
config:
phone-expenses-account: # or null
<string>
default: "expenses:phone:professional"
the account to use for private phone expenses
config:
phone-private-expenses-account: # or null
<string>
default: "expenses:phone:private"
the account to use for travel expenses
config:
travel-expenses-account: # or null
<string>
default: "expenses:travel:professional"
the account to use for private travel expenses
config:
travel-private-expenses-account: # or null
<string>
default: "expenses:travel:private"
the account to use for internet expenses
config:
internet-expenses-account: # or null
<string>
default: "expenses:internet:homeoffice"
the account to use for private internet expenses
config:
internet-private-expenses-account: # or null
<string>
default: "expenses:internet:private"
the account of the VAT paid on purchases
config:
vat-expenses-account: # or null
<string>
default: "expenses:VAT"
the account to use for donations
config:
donations-account: # or null
<string>
default: "expenses:charity"
the account to use for health insurance premiums
config:
health-insurance-premiums-account: # or null
<string>
default: "expenses:insurance:health"
the account to use for other health expenses
config:
health-other-account: # or null
<string>
default: "expenses:health:other"
the account to use for dentist expenses
config:
health-dentist-account: # or null
<string>
default: "expenses:health:dentist"
the account to use for doctor and prescription expenses
config:
health-doctor-account: # or null
<string>
default: "expenses:health:doctor"
the account to use for hospital stay expenses
config:
health-hospital-account: # or null
<string>
default: "expenses:health:hospital"
the account to use for therapy and cure expenses
config:
health-therapy-account: # or null
<string>
default: "expenses:health:therapy"
the account to use for daycare expenses
config:
daycare-account: # or null
<string>
default: "expenses:daycare"
the account to use for education expenses
config:
education-account: # or null
<string>
default: "expenses:education"
the account to use for movables assets
config:
movables-assets-account: # or null
<string>
default: "assets:movables"
the expenses account for movables purchases
config:
movables-expenses-account: # or null
<string>
default: "expenses:movables"
the depreciation rate for movables (e.g. 0.25 for 25%)
config:
movables-depreciation-rate: # or null
<string>
default: 1 % 4
the account to use for machinery assets
config:
machinery-assets-account: # or null
<string>
default: "assets:machinery"
the expenses account for machinery purchases
config:
machinery-expenses-account: # or null
<string>
default: "expenses:machinery"
the depreciation rate for machinery (e.g. 0.4 for 40%)
config:
machinery-depreciation-rate: # or null
<string>
default: 2 % 5