Johannes Spiess
September 2017
The user interface of the app asks for three basic parameters
Additionaly, users can enter a start date of the loan to caclulate in which year (approximately) the loan will be paid off.
The following code part represents the core calculation of the app:
loan <- 300000 ; interest <- 5.5 ; period <- 30
# Example for a loan of 300000, an interest rate of 5.5 percent and a credit period of 30 years
# The formula below calculates the so called annuity, i.e. the necessary annual sum of back payments
loan * ((1+(interest/100))^period*(interest/100))/((1+(interest/100))^period-1)
[1] 20641.62
The Loan Calculator is …
We hope you find Loan Calculator helpful!
URL to GitHub: https://github.com/SpiessJ/repohannes
Feel free to get in touch: jkhspiess@gmail.com