Any fixed-rate loan follows the same math: a set monthly payment that covers both interest and a shrinking slice of what you borrowed, until the balance hits zero.
How the monthly payment is calculated
The formula solves for a fixed payment that fully pays off the loan, with interest, over the exact term you choose.