Taxing a household one earner at a time
Where Should I Live works out a household’s tax by taxing each earner alone, then applying the country’s family rules.
Take a married couple moving to Berlin with two children under five, one earning £80,000 as an employee and the other not working. Before the family rules they’d pay £32,968 in tax and contributions. Joint assessment saves £6,592, and Kindergeld, the child benefit, adds £5,246 a year in cash. On Berlin’s card in Where Should I Live, each of those two rules gets its own line for that family.
The app’s first version was a calculator for one person: an income in, a tax bill for every city out. The household model adds a partner who may also earn, other adults, and children in three age bands, and taxes the whole household in every city. Tax is where that gets hard. Some countries tax each person separately, some let a married couple pool their income, and most give something for children, as a deduction, a tax credit or cash.
I built it without touching the tax calculator. That calculator came from the first version, it’s checked against golden figures from official schedules and calculators, and every view reads its output.
Each earner alone, then the family rules
Each earner is taxed on their own income by the existing calculator, exactly as before. Then, for the 29 countries that have them, that country’s joint filing, family deductions, credits and child benefits are laid on top, and the household pays the cheapest way it’s allowed to file. Every rule records its sources and the date each was checked. Germany’s splitting rule, for example, cites section 32a of its income tax act, checked in October 2026.
A tax bill that drops by thousands of pounds is no use without the reason, so each city’s card shows a line for every rule that changed it, and the lines add up exactly to the difference.
Cash benefits such as Kindergeld count towards take-home pay and are left out of the effective tax rate.
Proving one person hasn’t moved
What I cared about most was that someone moving on their own sees exactly the figures they saw before. The tests score every city with the household model and without it, and compare every figure the app shows with no tolerance at all. They do that for 22 single profiles across all 78 cities, from no income to £600,000, and every employment type.
The release won’t build if any of them fails, or if a fixed family produces a nonsense figure in any city.
More on Where Should I Live
Featured projects
-
Apple News API
Publish articles and live coverage to Apple News from PHP, with the whole Apple News Format built from objects.
-
GitHub Auditor
Health, access and activity reports for more GitHub and Bitbucket repositories than you can keep in your head.
-
PrintMD
Markdown in, and a designed PDF, Word or PowerPoint file out. Its PDF service runs on your own computer.
-
Solar Calendar
Thirteen months of exactly four weeks, with the year starting on the first Monday on or after the spring equinox.
-
TurboPush
Resumable uploads of very large files from the browser, put back together by one PHP class on the server.
More writing
-
Many sessions at once, and what still needs me
Fifteen coding-agent sessions across two Linux boxes, one session that watches the rest, what it may answer for me, what it never may, and why a yes it passes on gets checked against what I typed.
-
61 public repos of agent tooling, none installed, six ideas kept
One author, 61 public repositories of coding-agent tooling: what I checked before any of it got near my Linux boxes, why none of it was installed, and the six ideas I built my own way.
-
Rules a coding agent cannot talk its way round
The hook that reads every command a coding agent wants to run on my Linux boxes: what it refuses, the 27 proofs that its tests fail when a rule is taken out, and the four lines every report opens with.
-
Dozens of repos, one person
46 repositories and two Linux boxes with nobody else on them: the diary, the decision table, the rebuild guide and the job that keeps both sets of clones in step.