Let r be the annual rate divided by 12 and by 100, and n the number of months. The payment is principal × r(1+r)^n ÷ ((1+r)^n − 1). If the rate is 0, the payment is principal ÷ n.
This ignores fees, insurance, taxes, and the difference between an interest rate and an APR. A lender’s quote can be higher. The Consumer Financial Protection Bureau explains how to read a real offer.