[PYTHON] Student Loan Calculator

#Student Loan Calculator
#Kevin Wong - kmw396
#CS164-069 / Lecture B
Principle = float(input('How much do you want to borrow? (no commas) \n')) 
# Ask user how much they want to borrow and assigns to Principle variable. 
years = int(input('How many years do you need on the loan?\n'))
# Asks how many years they would like to take out on the loan 
    #Variables used for each loan
    #SfdLoan - Subsidized Federal Direct Loan
    #UfdLoan - Unsubsidized Federal Direct Loan
    #plusLoan - Unsubsidized PLUS Loan
# ==== Subsidized Federal Direct Loan ====
print("=======================================================") #just to add some design :)
print("SUBSIDIZED FEDERAL DIRECT LOAN") #prints out what type of loan its calculating
print("=======================================================")
SfdLoan = (Principle*0.034)/(12*(1-(1+(0.034/12))**(-years*12))) # This calculates the monthly payment for the loan
print("You will pay","$%.2f" % SfdLoan,"every month for this loan.\n") # I used modulus floating point 2 over round(var,x) since you can add a "$" symbol in front of your number
SfdLoanBal = SfdLoan * 12 * years # This calculates the total balance that will you pay for the loan before fees
print("The total amount paid for this loan will be","$%.2f" % SfdLoanBal,"over",years,"years.")
SfdLoanInterest = SfdLoanBal - Principle # This calculates the interest paid before your principle
print("The amount of interest paid on this loan will be","$%.2f" % SfdLoanInterest,"over",years,"years.\n")
SfdLoanFee = Principle * 0.01051 # This calculates the fee for the loan based on the principle. 
print("When a Subsizded Federal Direct Loan is taken out, you are\ncharged a fee based on the Principle. Your fee will be","$%.2f" % SfdLoanFee,"\n")
print("The total amount paid over the principle will be:","$%.2f" % (SfdLoanInterest + SfdLoanFee)) # This will calculate & print the interest/fees before the principle
print("The total amount paid including fees will be:","$%.2f" % (SfdLoanBal + SfdLoanFee)) # This will calculate & print the entire cost of the loan including fees.
print("=======================================================") 
# ==== Unsubsidized Federal Direct Loan ====
print("UNSUBSIDIZED FEDERAL DIRECT LOAN")
print("=======================================================")
newPrinciple = Principle * (1 + 0.068 * 4.25) # This will calculate the new principle for the loan since interest acculumates as your in school for this loan
UfdLoan = (newPrinciple*0.068)/(12*(1-(1+(0.068/12))**(-years*12))) # This calculates the monthly payment for the loan
print("You will pay","$%.2f" % UfdLoan,"every month for this loan.\n")
UfdLoanBal = UfdLoan * 12 * years # This calculates the total balance that will you pay for the loan before fees
print("The total amount paid for this loan will be","$%.2f" % UfdLoanBal,"over",years,"years.")
UfdLoanInterest = UfdLoanBal - Principle # This calculates the interest paid before your principle
print("The amount of interest paid on this loan will be","$%.2f" % UfdLoanInterest,"over",years,"years.\n")
UfdLoanFee = Principle * 0.01051 # This calculates the fee for the loan based on the principle. 
print("When a Unsubsizded Federal Direct Loan is taken out, you are\ncharged a fee based on the Principle. Your fee will be","$%.2f" % UfdLoanFee,"\n")
print("The total amount paid over the principle will be:","$%.2f" % (UfdLoanInterest + UfdLoanFee)) # This will calculate & print the interest/fees before the principle
print("The total amount paid including fees will be:","$%.2f" % (UfdLoanBal + UfdLoanFee)) # This will calculate & print the entire cost of the loan including fees.
print("=======================================================")
# ==== Unsubsidized Plus Loan ====
print("UNSUBSIDIZED PLUS LOAN")
print("=======================================================")
newPrinciple = Principle * (1 + 0.079 * 4.25) #This will calculate the new principle for the loan since interest acculumates as your in school for this loan
plusLoan = (newPrinciple*0.079)/(12*(1-(1+(0.079/12))**(-years*12)))
print("You will pay","$%.2f" % plusLoan,"every month for this loan.\n")
plusLoanBal = plusLoan * 12 * years # This calculates the total balance that will you pay for the loan before fees
print("The total amount paid for this loan will be","$%.2f" % plusLoanBal,"over",years,"years.")
plusLoanInterest = plusLoanBal - Principle # This calculates the interest paid before your principle
print("The amount of interest paid on this loan will be","$%.2f" % plusLoanInterest,"over",years,"years.\n")
plusLoanFee = Principle * 0.04204 # This calculates the fee for the loan based on the principle. 
print("When a Unsubsidized PLUS Loan is taken out, you are\ncharged a fee based on the Principle. Your fee will be","$%.2f" % plusLoanFee,"\n")
print("The total amount paid over the principle will be:","$%.2f" % (plusLoanInterest + plusLoanFee)) # This will calculate & print the interest/fees before the principle
print("The total amount paid including fees will be:","$%.2f" % (plusLoanBal + plusLoanFee)) # This will calculate & print the entire cost of the loan including fees.
print("=======================================================")