Question

In: Computer Science

Write a VBA program to compare two mortgages based on total interest costs for Canadian users....

Write a VBA program to compare two mortgages based on total interest costs for Canadian users.
General requirements

Allow user to provide info on two mortgages to be compared


Obtain all user inputs through Userform


The following inputs should apply to both mortgages


Property value


Down pay in percentage


Payment frequency (limit to monthly, semi-monthly, and weekly)


Ask user for the following mortgage specific inputs


Type: Fixed or Variable


Term: 1, 2, 3, 4, 5


Mortgage rate for FRM


Prime and deal for VRM


Conditional on mortgage info provided, ask user to provide interest forecast for the relevant period. For example, if a user wants to compare a 2-year FRM vs a 4-year VRM, your model should ask the use to provide quarterly prime change from year 1 to year 4, and the long term fixed mortgage rate.


Compute total interest costs to fully repay the loan


Use CUMIPMT function (no amortization table allowed)


Based on assumptions under Assumptions below


Outputs


All user provided information on mortgages and interest rates should be put in a table in the spreadsheet in an organized manner


Total interest costs for each option should be listed at the end of the table with decision clearly stated based on comparing the total interest costs.


Assumptions

Semi-annual compounding


When two mortgages (S and L) are not equal in terms (S with shorter term and L with longer term), assume an add-on 30-year FRM (A) will follow mortgage S, such that the term of mortgage S plus the term of mortgage A equals the term of mortgage L.


For the add-on fixed rate mortgage A, use forecasted prime rate at the beginning of the year this add-on FRM starts as the fixed mortgage rate.  


Following mortgage L (and equivalently mortgage S+A), mortgage loan balance will be fully amortized at the long term fixed rate in a 30-year FRM (without term) provided by the user.


Hypothetical mortgage (the add-on mortgage and the terminal mortgage) always starts with 30-year life


any information would be helpful

Solutions

Expert Solution

Seven factors that determine your mortgage interest rate

1. Credit scores

2. Home location

3. Home price and loan amount

4. Down payment

5. Loan term

6. Interest rate type

7. Loan type

Sales_Price = float(input('Enter sales price of house in COUNTRYName: '))

Down_Payment = float(input('Enter down payment as a percentage of Sales Price, e.g. 5 for 5%: '))
Loan_Amount = Sales_Price*(1-Down_Payment/100)Mortgage_Type = float(input('Enter mortgage type in years, e.g 10 for 20 years: '))
Loan_Term = int(12*Mortgage_Type)
Interest_Rate = float(input('Enter loan interest rate as a percentage, e.g 5 for 5%: '))
R = 1 +(Interest_Rate)/(12*100)X = Loan_Amount*(R**Loan_Term)*(1-R)/(1-R**Loan_Term)Monthly_Interest = []
Monthly_Balance = []for i in range(1,Loan_Term+1):
Interest = Loan_Amount*(R-1)
Loan_Amount = Loan_Amount - (X-Interest)
Monthly_Interest = np.append(Monthly_Interest,Interest)
Monthly_Balance = np.append(Monthly_Balance, Loan_Amount)



Related Solutions

PYTHON In this lab we will design a menu-based program. The program will allow users to...
PYTHON In this lab we will design a menu-based program. The program will allow users to decide if they want to convert a binary number to base 10 (decimal) or convert a decimal number to base 2 (binary). It should have four functions menu(), reverse(), base2(), and base10(). Each will be outlined in detail below. A rubric will be included at the bottom of this document. Menu() The goal of menu() is to be the function that orchestrates the flow...
Write a C++ program to compare those two searching algorithms and also compare two sorting algorithms....
Write a C++ program to compare those two searching algorithms and also compare two sorting algorithms. You need to modify those codes in the book/slides to have some counters to count the number of comparisons and number of swaps. In the main function, you should have an ordered array of 120integers in order to test searching algorithms, and the other two identical arrays of 120integers not in order to test sorting algorithms. Display all counters in the main functions.Counter for...
Write a program to compare those two searching algorithms and also compare two sorting algorithms. You...
Write a program to compare those two searching algorithms and also compare two sorting algorithms. You need to modify those codes in the book/slides to have some counters to count the number of comparisons and number of swaps. In the main function, you should have an ordered array of 120 integers in order to test searching algorithms, and the other two identical arrays of 120integers not in order to test sorting algorithms. Display all counters in the main functions. Counter...
File Compare Write a program that opens two text files and reads their contents into two...
File Compare Write a program that opens two text files and reads their contents into two separate queues. The program should then determine whether the files are identical by comparing the characters in the queues. When two nonidentical characters are encountered, the program should display a message indicating that the files are not the same. If both queues contain the same set of characters, a message should be displayed indicating that the files are identical. // Copyright (c) 2013 __Pearson...
Please write in x86 Assembly language on Visual Studio Write a program to compare two strings...
Please write in x86 Assembly language on Visual Studio Write a program to compare two strings in locations str1 and str2. Initialize str1 to Computer and initialize str2 to Compater. Assume Str1 holds the correct spelling and str2 may have an incorrect spelling. Use string instructions to check if str2 is correct and if not correct the mistake in str2.
Write JAVA program that finds 3 students with the best scores. The program asks users for...
Write JAVA program that finds 3 students with the best scores. The program asks users for scores of 5 students. The program prints the first, second, third place students and scores. You can assume that there is no two students with the same score. <EXAMPLE> enter the score of each student score of student 1: 50 score of student 2: 70 score of student 3: 30 score of student 4: 90 score of student 5: 40 1st place is student...
how to write in VBA a Taylor series program for f(x)= (x+2)^(1⁄3) expanded about x =...
how to write in VBA a Taylor series program for f(x)= (x+2)^(1⁄3) expanded about x = 0. Use approximate relative error to check for a stopping point for an error of 0.001 for x = 0.291.
Please choose one health problem or program and compare the performance of the Canadian and Mexican...
Please choose one health problem or program and compare the performance of the Canadian and Mexican Health Systems to US. What is the main lesson you learned?
Please use Phyton to write a program: Write a program that calculates and displays the total...
Please use Phyton to write a program: Write a program that calculates and displays the total bill at a restaurant for a couple that is dining. The program should collect from the couple, cost of each meal, and the percentage of the final cost that they would like to tip. The sales tax in the state where the restaurant exists is 7.5%. Display to the user, line by line: Total Cost of Both Meals Sales Tax in dollars Tip in...
Create a program that ask to input two users and the result will vary on their...
Create a program that ask to input two users and the result will vary on their name with similar digits. In a game of F.L.A.M.E.S , it will count and repeat depends on their name that has a similar digit. For an Example (JOE RIZAL) and (JACKLYN BRACKEN) - JOE RIZAL has - 5 similar digits , while JACKLYN BRACKEN has 6 similar digits so a total of 11. F - Friends - 1,7 L - Lover - 2,8 A...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT