public
anonymous / gist:6116090
Created

Here it is with more description and parentheses.

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
outbal= float(raw_input('enter the outstanding balance on your credit card:'))
annualrate= float(round(raw_input('Enter the annual credit card interest rate as a decimal:')), 2)
monthlyrate= round(annualrate/year, 2)
month=1
x = 1
while (remainder > 0):
while (month <= 12):
initialmonthlyballance = round(float(((annualrate /12)*outbal)+outbal, 2)
remainder = round(float(initialmonthlyballance - x10))
print "Outbal minus payment equals:" remainder
if (y >= 0):
month = month + 1
outbal = remainder
if (remainder > 0):
x = x + 1
Else:
if (y <= 0):
print 'Monthly payment to pay off debt in 1 year:', a
print 'number of months needed:', month
print 'Balance:' b

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.