Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class debt:
- def calc():
- balance = 3926
- initialBalance = balance
- annualInterestRate = 0.2
- monthlyInterestRate = annualInterestRate/12
- minimumMonthlyPayment = 10
- while (balance > 0):
- for i in range(12):
- balance = round((balance-minimumMonthlyPayment)*(1+monthlyInterestRate), 2)
- if (balance > 0):
- minimumMonthlyPayment +=10
- balance = initialBalance
- print "Lowest Payment: ", minimumMonthlyPayment
- calc()
Add Comment
Please, Sign In to add comment