Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- startbalance = balance
- minmonth = 10
- months = 0
- monthlyinterest = annualInterestRate / 12
- while(balance >= 0):
- balance = balance * (1 + monthlyinterest) - minmonth
- months = months + 1
- if(months > 12):
- months = 0
- minmonth = minmonth+1
- balance = startbalance
- else:
- if (balance <= 0):
- minmonth=int(round(minmonth, -1))
- print ("Lowest Payment: " + str(minmonth))
Add Comment
Please, Sign In to add comment