JavaScript Loan Payment Calculations

The following table shows monthly payments for a $10,000 car

loan at the annual interest rate of 3% for 1 to 6 year loans.