$P = (\text{Price} + \text{Tax} + \text{Fees}) - (\text{Down Payment} + \text{Trade-in})$
$M = P \frac{r(1+r)^n}{(1+r)^n - 1}$