Guest User

Untitled

a guest
Jan 20th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. balance = 4213
  2. annualInterestRate = 0.2
  3. monthlyPaymentRate = 0.04
  4. totalPaid = 0
  5. for month in range (0,12):
  6. MP = (balance * monthlyPaymentRate)
  7. monthlyInterestRate = (annualInterestRate/12)
  8. monthinterest = (balance - MP) * monthlyInterestRate
  9. remaining = balance + monthinterest - MP
  10. print ('Month: ' +str(month+1))
  11. print 'Minimum monthly payment: ', +(round(MP,2))
  12. print 'Remaining Balance: ', +(round(remaining,2))
  13. totalPaid += MP
  14. rembalance = balance - totalPaid
  15. print 'Total Paid: ', +(round(totalPaid,2))
  16. print 'Remaining Balance: ', +(round(rembalance,2))
Add Comment
Please, Sign In to add comment