I found their bug, then I found mine.
An open tax engine for Swedish limited companies: a language model reads your situation and picks the rule, then plain code does the arithmetic and cites the statute.
- What
- Open tax engine
- Status
- Live, open source
- Built with
- TypeScript, Bun, MCP server, 978k-case test suite, AGPL-3.0
I assumed I was wrong.
WhyClose
I assumed I was the one who was wrong. I wasn’t: some were off by 100 000 kr. And the ones that were right still just handed you a number, never a plan.
Nothing fuzzy touches the math.
WhyClose
A language model reads your situation and picks the rule. Plain code does the arithmetic, with the statute cited on every value. Same input, same answer, every time.
The bug was mine.
It was up, and being used. Free, open, no signup. Thin analytics and no accounts, which mattered later.
275 of 290 municipalities were wrong. It had been using a default rate for most of Sweden instead of the real municipal one: 32,38%. Fifteen municipalities were correct. Every other calculation was off.
I couldn’t tell who it had reached. No accounts, thin analytics: maybe twenty people. So I assumed it was all of them.
I wrote to everyone before I had a fix, and named exactly which fifteen municipalities were safe, so nobody had to distrust a number that was already right.
Then I took the whole thing down, until all 290 municipalities carried SCB-verified rates. Then I mailed again to say it was back.
Correct rates existed for Stockholm, Göteborg, Malmö, Uppsala, Solna, Täby, Nacka … and six more.
ALL OTHER municipalities were affected.
Outside the list? Redo your calculation when I email that the fix is live. On it? Your figures are already correct.
WhyClose
Naming who was safe was the point. A vague apology would have made everyone distrust a number that was, for fifteen municipalities, already right.
What it has to survive.
Every case run against Skatteverket. 290 municipalities, every rate SCB-verified.
Being wrong here costs somebody money.
WhyClose
I won’t charge for that, and tax raises the stakes further. So it stays open, free, and checked with your accountant. The licence makes that permanent, not a promise.
It costs 0 kronor to use, now or later. Source code ↗