You are on page 1of 1

lowestMonthlyPayment (999999, 0.

18)

upper = fixedMonthlyPayment
elif projBalance < 0: fixedMonthlyPayment = (lower+upper)/2
monthlyInterestRate =
def lowestMonthlyPayment (balance, annualInterestRate):
annualInterestRate / 12.0

def (balance, fixedMonthlyPayment): balanceAfter1Year


for month in range (12):
= balance - fixedMonthlyPayment monthlyUnpaidBalance

lower = balance/12
upper = /12.0
fixedMonthlyPayment = (lower+upper)/2
projBala(balance*((1+monthlyInterestRate)**12))nce =
balanceAfter1Year(balance,fixedMonthlyPayment)
balance = round(monthlyUnpaidBalance * )
#pri(1 + monthlyInterestRate),2
nt('Remaining balance after 1 year: '+str(round(balance,2))+'\n')
return balance

while if projBalance > 0:(projBalance!=0):

lower = fixedMonthlyPayment
= balanceAfter1Year projBalance (balance,fixedMonthlyPayment)

print (' Lowest Payment: '+str(round(fixedMonthlyPayment,2)))

You might also like