Lease Mileage Calculator

Optional: Use URL Parameters for Autofill/Auto-Run

How it works: Append query parameters to the URL (e.g., after index.html) to pre-fill fields. If all three core params are provided, it auto-calculates on load. Use format=json for raw JSON output (API mode).

Examples:

Autofill only term: ?termMonths=36
    
    Full autofill + auto-run (HTML): ?startDate=2025-01-01&termMonths=36&annualMiles=12000
    
    Full + JSON API (curl-friendly): ?startDate=2025-01-01&termMonths=36&annualMiles=12000&format=json

Copy the full URL from your browser's address bar to share pre-filled links. Uses today's date (December 05, 2025) for calcs. JSON output includes currentCap, totalMiles, elapsedDays, etc.