Aan de slagGa gratis aan de slag

Calculating interest and principal payments

Due to the size of the mortgage loan, you begin the mortgage in the initial period by paying mostly interest and retaining very little principal, or equity that goes towards the ownership of your home.

This means that if you were to stop paying your mortgage and sell your home after only a few years, the bank would actually own most of the home because what you paid was mostly interest, and very little principal.

mortgage_loan, mortgage_rate_periodic, and periodic_mortgage_payment from the third exercise are available for use.

Deze oefening maakt deel uit van de cursus

Introduction to Financial Concepts in Python

Cursus bekijken

Oefeninstructies

  • Calculate the amount of the first loan payment that will go towards the mortgage interest based on the mortgage rate.
  • Calculate the remaining amount of the first loan payment that will go towards the mortgage principal.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Calculate the amount of the first loan payment that will go towards interest
initial_interest_payment = ____
print("Initial Interest Payment: " + str(round(initial_interest_payment, 2)))

# Calculate the amount of the first loan payment that will go towards principal
initial_principal_payment = ____
print("Initial Principal Payment: " + str(round(initial_principal_payment, 2)))
Code bewerken en uitvoeren