Map and motion

Mortgage calculator

A small calculator with sliders for price, down payment, interest rate and loan term. It shows the monthly payment as you move them.

Example

Calculator

Mortgage calculator

Estimated monthly paymentLoan amount

Move a slider and the payment updates at once. It is an estimate: principal and interest only, no tax or insurance.

Classes and attributes

NamePurpose
[data-mortgage]Put on the wrapper (.mortgage-calc). site.js does the math.
input[data-m]Slider. Values: price, down (percent), rate (percent a year), years.
[data-m-out="..."]Shows a value: price, down, rate, years or loan.
[data-m-result]Shows the monthly payment.
.mortgage-field, .mortgage-resultOne slider row and the result box.