Jan takes out a 30-year loan for $400,000 to buy a house. The annual rate is 4.5% compounded monthly. Let R represent his monthly payment.
a) Find the monthly payment.
b) What is the unpaid balance of the loan after 10 years?