monthlyInterestRate=annualInterestRate/12
cpyBalance=balance
lowestPayment=10
while (lowestPayment*12)<((balance)*(1+annualInterestRate)):
month=1
newBalance=balance
for month in range(0,12):
newBalance=((newBalance-lowestPayment)*(1+monthlyInterestRate))
month=month+1
if newBalance<=0:
break
else:
lowestPayment=lowestPayment+10
print('Lowest Payment: ' + str(lowestPayment))
No hay comentarios:
Publicar un comentario