the starting principal of the loan
the interest rate of the loan
the number of months for the loan
Optional
fixed_payment: numberif provided, uses a fixed monthly payment amount. This is useful for mortgage-style calculations wherein the monthly payment remains the same for the length of the loan. This differs from something like a revolving credit balance where the payment can change every month.
the number of digits to round the result to
Calculates the payment, interest portion of that payment, principal portion of that payment, and remaining balance after that payment of an amortization loan