When shopping for a new car recently, I was wondering about the lifetime fuel cost and carbon emissions of different cars, and whether buying a more expensive car would pay off in the long-run. To help answer these questions, I built a vehicle fuel cost and carbon emissions calculator.
I've made the code public on GitHub and have written more technical details in the readme there. If I were building it now, I'd use TypeScript, use functional React components, and write thorough tests.