This a calculator for comparing the financial benefits of buying a home vs renting a home and investing in stocks. It assumes UK taxation. You can see it in action and read more about it at mhauru.org/buyvsrent/index.html.
To build:
npm install --dev
npm run build
This is free software under the AGPLv3 licence. Feel free to fork or send pull requests. If you'd need it under some other licence, do ask.