Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write program in python, disregard any notes in description just need a python code for calculating mortgage saving if paid off in a given

Please write program in python, disregard any "notes in description" just need a python code for calculating mortgage saving if paid off in a given time

image text in transcribed

[p]=mortgage(P,R,N) where the input parameters are the initial amount of the loan P, the annual percentage interest rate R, and the total number of monthly payments N, and the output p is a vector of N+1 elements containing the amount owed to the bank at the beginning of each month after making the mortgage payment for the month. The first entry of p should be P. and the last entry should be 0 or negative. Assume that the mortgage payment M is the same every month. You should calculate this amount in your program using the closed form solution in equation (1.6) in the lecture notes. (a) Use the mortgage program created above to determine the total savings possible by paying off a 30-year, $400,000 loan at the annual interest rate of 6% in 15 years. (Assume that instead of the monthly payment for the 30-year loan, you will pay a fixed amount more each month to make the 15 -year pay off possible.) (b) Now suppose that the bank allowed you to repay the loan in two-week installments, and the bank calculates the interest rate for two weeks as (1/26) th of the annual interest rate R. Assume also that the biweekly payment is half the monthly payment for the thirtyyear loan. How much will you save over the life of the biweekly loan when compared with the thirty-year loan

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

What does the term maturity mean?

Answered: 1 week ago