Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- balance = 3200
- annualInterestRate = 0.2
- monthlyPaymentRate =annualInterestRate/12
- month = 1
- totalPaid = 0
- while month < 13:
- totalPaid += balance * monthlyPaymentRate
- print "Month: " + str(month)
- print "Minimum monthly payment: " + str(round(balance*monthlyPaymentRate, 2))
- balance = (balance - (balance*monthlyPaymentRate))*(1+(annualInterestRate/12))
- print "Remaining balance: " + str(round(balance, 2))
- month += 1
- print "" + str(round(totalPaid, 2))
- print "Remaining balance: " + str(round(balance, 2))
Add Comment
Please, Sign In to add comment