3 ms·
Really interesting to see this. I'm a co-founder of AdviceBridge, where we have implemented part of the UK tax code related to income tax and pensions in order
by glutamate 6y ago
Really interesting to see this. I'm a co-founder of AdviceBridge, where we have implemented part of the UK tax code related to income tax and pensions in order to provide digital financial advice.
In the UK, the HMRC (again, equivalent of IRS) makes worksheets available for computational tax but these are not machine-readable and are not guaranteed to be correct! (Indeed on some points, government websites give incorrect information related to the state pension. [1])
We did something similar to this approach but much simpler - we wrote a little arithmetic language specifying the tax rules, embedded in a spreadsheet for quick verification, and then translated this language into C++ using a Haskell compiler.
[1] https://www.thisismoney.co.uk/money/pensions/article-7100019/State-pension-data-blunder-means-3-given-WRONG-online-forecasts.html https://www.thisismoney.co.uk/money/pensions/article-7100019...
- Nextgrid 6y agoDoes HMRC provide those free of charge? I'd be curious to have a look at them.
- glutamate 6y agoe.g. https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/788319/SA110_notes_2019.pdf https://assets.publishing.service.gov.uk/government/uploads/...