table and amorization charts using tkinter

Solutions on MaxInterview for table and amorization charts using tkinter by the best coders in the world

showing results for - "table and amorization charts using tkinter"
Oskar
15 Aug 2018
1import math
2print("Payment Amount")
3p=input()
4print("interest value in decimals")
5r=input()
6print("Loan Period in years")
7t=input()
8p=float(p)
9r=float(r)
10t=float(t)
11m=(p*(r/12)*(math.pow(1+r/12,12*t)))/(math.pow(1+r/12,12*t)-1)
12print("Loan paymnet amount monthly is: $"+str(m))
13print("PaymentNumber\tPaymnetAmount\tPrincipalAmountPaid\tInterestAmountPaid\tLoanOutstandingBalance")
14month=12*t
15month=int(month)
16PaymentAmount=p
17LoanOutstandingBalance=p
18for i in range(1,month+1):
19    
20    InterestAmountPaid=r/12*PaymentAmount
21    PrincipalAmountPaid=m-InterestAmountPaid
22    LoanOutstandingBalance=PaymentAmount+InterestAmountPaid-m
23    print(str(i)+"\t\t$"+str(round(PaymentAmount,2))+"\t\t$"+str(round(PrincipalAmountPaid,2))+"\t\t$"+str(round(InterestAmountPaid,2))+"\t\t$"+str(round(LoanOutstandingBalance,2)))
24    PaymentAmount=LoanOutstandingBalance  
25
26