Loan amortization
The amount financed is the price minus the down payment, repaid at the stated APR with interest compounding monthly. Because each fixed payment covers that month's interest first, early payments go mostly to interest and the principal share grows over time. Total interest over the term is the sum of all payments minus the amount financed, so a longer term lowers the payment but raises total interest.