Quick budget tracker I built for my matatu runs
I drive a matatu on the Thika Road route, and keeping track of daily cash and M-Pesa payments was a mess of crumpled receipts and phone screenshots. So I built a small web app that lets me log each trip, add fuel and permit costs, and see my daily and weekly balance at a glance. It runs on my phone's browser, no data bundles needed once it's loaded, which helps since I'm always offline in traffic. What it does is simple: I open the page, pick cash or M-Pesa, type the amount, and hit save. At the end of the day, I can see how much I made minus all the costs, and I can even export the numbers to a text file so my accountant doesn't have to guess. I built it with plain HTML, CSS, and a little JavaScript (that's the language that makes web pages interactive), and it stores everything right on my phone so there's no internet needed. One thing that got me stuck for days was making the numbers add up correctly. I kept getting weird totals like 0.1 plus 0.2 equaling 0.30000000000000004, which is a silly bug in how computers handle decimals. I finally fixed it by rounding every number to two decimal places before saving, but wow, that was frustrating. Happy to explain how I built it or help anyone who wants to try something similar for their own hustle. What kind of daily tracking would make your life easier?