Created
October 26, 2015 23:03
-
-
Save GlenTiki/baa461e7ab2147755c25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double monthlyInterestRate = annualInterestRate / 1200; | |
double monthlyPayment = (loanAmount * monthlyInterestRate)/(1 -(1/Math.pow(1+monthlyInterestRate, numberOfYears*12))); | |
double totalPayment = monthlyPayment*numberOfYears*12; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment