WenFire: When Could I retire?! π₯
ππ Advent of Open Source β Day 04/24: A financial independence calculator built with FastAPI, htmx, and Vega-Lite.

(See my intro post)
While I absolutely love my job, I believe Iβll love it even more when my familyβs livelihood doesnβt depend on it. Thatβs the dream of financial independence - doing what you love because you want to, not because you have to. This led me to create WenFire, a financial independence calculator that helps answer the eternal questions: βWhen can I retire?β and βHow many days of extra work will that new iPhone or car cost me?β
π Origin Story #
There are many retirement calculators out there, but they all made assumptions I didnβt quite agree with (and Iβm sure others wonβt agree with my assumptions either!). I wanted something that matched my specific views on salary growth and investment returns. Plus, I had been itching to learn more about building web applications, so this project let me explore FastAPI, htmx, and Vega-Lite while solving a personal need.
π§ Technical Highlights #
- Built with FastAPI and Bootstrap
- Interactive visualizations using Vega-Lite
- Responsive and mobile-friendly design
- Customizable assumptions for:
- Investment growth
- Inflation rates
- Salary increases
- Safe withdrawal rates
- Allows parameter changes at certain dates
- Calculate retirement impact of one-time expenses
- All parameters are encoded in the URL for easy sharing
π Impact #
While this project only has 3 GitHub stars, its real value is personal - it helps me track my own journey to financial independence. Itβs also been a great learning experience in web development, an area where I had little prior experience.
π― Challenges and Solutions #
- Learning web development from scratch
- Creating intuitive visualizations for financial data
- Balancing simplicity with customization options
- Making reasonable default assumptions
- Ensuring mobile responsiveness
π‘ Lessons Learned #
- Financial modeling requires careful consideration of assumptions
- Web development is a different beast from scientific computing
- Sometimes the best way to learn new tech is to solve a personal problem
- The best calculator is the one that matches your own assumptions
Want to calculate your path to financial independence? Try it at wenfire.nijho.lt or check out the source code!
#OpenSource #Python #FinancialIndependence #WebDev #FIRE