Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- balance = 3926
- annualInterestRate = 0.2
- minMonthPay = 10
- month = 0
- while balance > 0:
- month = 0
- while month in range(1,13):
- month += 1
- monthlyInterestRate = annualInterestRate / 12
- updatedBalance = (balance - minMonthPay) * (1 + monthlyInterestRate)
- balance = updatedBalance
- if updatedBalance <= 0 is false:
- minMonthPay += 10
- if balance < 0:
- break
- print ('Lowest Payment: ' + str(minMonthPay - 10))
Add Comment
Please, Sign In to add comment