Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- balance =
- annualInterestRate =
- monthlyPaymentRate =
- total = 0.0
- for month in range(1,13):
- payment = monthlyPaymentRate * balance
- total += payment
- interest = (balance - payment) * annualInterestRate / 12
- balance = (balance - payment + interest)
- print 'Month:', month
- print 'Minimum monthly payment:', round(payment,2)
- print 'Remaining balance:', round(balance,2)
- print 'Total paid:', round(total, 2)
- print 'Remaining balance:', round(balance, 2)
Add Comment
Please, Sign In to add comment