Home / Vibe coding tips / Build a mileage log you can fill in from your phone
5-minute tip

Build a mileage log you can fill in from your phone

Have an AI assistant build a one-page mileage and trip log that works on your phone, keeps entries on that device and exports a spreadsheet file for your bookkeeper at year-end. It takes about five minutes.

The problem: Business miles add up, but most owners rebuild the log from memory in January, and the notes app version is hard to total.

How to do it

  1. Decide what each trip needs. Write down the fields your bookkeeper asks for, such as date, start and end odometer or miles, customer or job, and the business purpose.
  2. Ask for one HTML file. Ask the assistant for a single HTML page with a short form for those fields, big buttons for a phone, and a running total of miles for the month and year.
  3. Keep entries on the phone. Ask it to save entries in the browser on that device and to add an Export to CSV button so you can open the log in Excel or Google Sheets.
  4. Test it with two trips. Open the page on your phone, add two sample trips, check the totals, export the file and open it in a spreadsheet.
  5. Make it a habit. Save the page to your phone's home screen, log each trip before you pull away, and export a copy at the end of every month as a backup.

Example prompt

Build me a mileage log as a single HTML file I can open on my phone. I run a small plumbing company. Each trip needs the date, starting and ending odometer (work out the miles for me), the customer or job name, and a short business purpose. Use big buttons and large text, show the total miles for this month and this year, save entries in the browser on this phone, and add an Export to CSV button so my bookkeeper can open it in Excel. Keep it plain and easy to use with one hand.
Why it works: Five minutes of setup, and January's mileage scramble becomes one export.

Works with: Any AI chat or coding assistant (ChatGPT, Claude, Gemini, Claude Code, Codex, Cursor...).

Related