Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

table and amorization charts using tkinter

import math
print("Payment Amount")
p=input()
print("interest value in decimals")
r=input()
print("Loan Period in years")
t=input()
p=float(p)
r=float(r)
t=float(t)
m=(p*(r/12)*(math.pow(1+r/12,12*t)))/(math.pow(1+r/12,12*t)-1)
print("Loan paymnet amount monthly is: $"+str(m))
print("PaymentNumber	PaymnetAmount	PrincipalAmountPaid	InterestAmountPaid	LoanOutstandingBalance")
month=12*t
month=int(month)
PaymentAmount=p
LoanOutstandingBalance=p
for i in range(1,month+1):
    
    InterestAmountPaid=r/12*PaymentAmount
    PrincipalAmountPaid=m-InterestAmountPaid
    LoanOutstandingBalance=PaymentAmount+InterestAmountPaid-m
    print(str(i)+"		$"+str(round(PaymentAmount,2))+"		$"+str(round(PrincipalAmountPaid,2))+"		$"+str(round(InterestAmountPaid,2))+"		$"+str(round(LoanOutstandingBalance,2)))
    PaymentAmount=LoanOutstandingBalance  

Comment

PREVIOUS NEXT
Code Example
Python :: monoamine oxidase inhibitor 
Python :: randomforestclassifier 
Python :: file.write must be string python 
Python :: first remove nans then split into train and validation 
Python :: multiply every nth element 
Python :: django BruteBuster error failed attempts 
Python :: Return an RDD of grouped items. 
Python :: Return an RDD with the values of each tuple 
Python :: say hello to someone in python 
Python :: reference other libraries in library 
Python :: celery subprocess 
Python :: how to read a data file in python and build a list of files 
Python :: raspberry pi pygame play thru bluetooth device 
Python :: click on button tag with only class selenium python 
Python :: r value on poly fit python 
Python :: set title name in steamlit 0.790 
Python :: how to have framer read json timestamps 
Python :: python numpy + opencv + overlay image 
Python :: difference between changing values of variable and list inside function in python 
Python :: Cloud Build Quickstart 
Python :: ggt euklidischer algorithmus python 
Python :: TemplateSyntaxError 
Python :: updating file multiple times in pandas 
Python :: python join tuple integer to string 
Python :: drop values based on type pandas 
Python :: python converting phred quality score to number 
Python :: write dict to json file with special characters 
Python :: no module named cbor2 windows 
Python :: 2D array questions python 
Python :: kwargs handling multiple arguments and iterating them loop 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =