StealThis .dev

Auto — Finance / Lease Calculator

A dealership finance desk calculator that estimates a vehicle payment live from price, down payment, trade-in, APR and term. Finance and lease tabs swap the underlying math: amortized APR for purchases, residual value and money factor for leases. Sliders paired with tabular money inputs recompute the monthly figure on every change, while a composition bar splits principal from interest and an amortization summary tallies amount financed, total of payments, cost of credit and cash due at signing.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Finance / Lease Calculator

A single-screen finance desk for Rivetline Motors, built around a 2024 Bishop Trail XLT with its VIN and stock number on a gradient vehicle chip. The left panel collects the deal inputs — vehicle price, down payment, trade-in value, APR and term — each one a tabular money field wired to a slider so a value can be typed or dragged. Quick-term chips jump the loan to 36, 48, 60, 72 or 84 months, and a down-payment percentage tag updates as the numbers move.

The Finance and Lease tabs swap the math behind the headline. Finance amortizes the taxed, trade-adjusted balance over the term at the chosen APR; Lease reveals a residual-value slider and recalculates payment as depreciation plus a money-factor rent charge on the capitalized cost. Every keystroke or drag recomputes the large monthly figure, repaints the principal-versus-interest composition bar, and refreshes the amortization summary — amount financed, total of payments, total interest or rent, cash due at signing and cost of credit. An affordability panel flags the payment as comfortable, a stretch or over budget, and locking the quote stamps a reference number via a toast.

Everything is vanilla HTML, CSS and JavaScript with no frameworks, build step or libraries beyond the Inter font. Money and rate fields use tabular figures, the two-column layout collapses to a stacked mobile view below 520px, and sliders, inputs, chips and buttons all stay keyboard-usable.

Illustrative UI only — fictional shop/dealership, not a real service system.