Vyom World.com Let's Touch the Sky Together!
 Home VyomWorld.com Home Free Magazines! VyomLinks.com Home JobsAssist.com Home Vyom Network Contact Us Jobs & Careers Resume Submitter Placement Papers IT Companies Directory Computer Jobs Interview Questions Online Exams Vyom Career eMag. Fun Screensavers New! Send FREE SMS! SMS Jokes Source Codes Library Source Codes Home ASP Source Codes C Source Codes C++ Source Codes COBOL Source Codes Java Source Codes Pascal Source Codes Submit Source Codes GATE GATE an Overview GATE Preparation Study Materal GRE GRE an Overview GRE Questions GRE Preparation GRE Universities TOEFL Preparation TOEFL Resources GMAT Preparation GMAT Resources MBA Preparation MBA Resources Networking Concepts Networking Concepts Testing Preparation Testing Resources Webmasters Free Traffic Builder Webmaster Articles Web Hosting Tutorials Hardware Tutorial 1500 Free eBooks New! FREE Publications
Vyom Career eMag.
 Get 9,000+ Interview Questions & Answers in an eBook. 9,000+ Interview Questions All Questions Answered 5 FREE Bonuses Free Upgrades Get it now!
Get 9,000+ Interview Questions with Answers in an eBook

Home >> Source Codes Library Home >> Language Home >> Category Home > > Item Description
Search Code Library

 Title Mortgage Amortization Description: Calculate mortgage info. Payment, Interest paid, Principal balance, in an amortization table Hits: 1456 Since 25th November, 2003 Code: Select and Copy the Code
<% Dim P 'Payment Dim I 'Interest Dim L 'Loan Term In Years Dim J Dim N Dim M Dim H Dim C Dim Q Dim X 'Set the Conter for the Ammoritization X=0 'Hard Code Some Loan Values HERE 'Replace these with your variables 'Total of Loan Amount P=100000 'Interest Rate I=7 'Loan term in years L=30 'Calculate Monthly Interest J=I/(12 * 100) 'Length of loan in Months N=L * 12 'Now the magic..... M = P * ( J / (1 - (1 + J) ^ -N)) Response.Write "Monthly Payment: " & Round(M, 2) & "
" Response.Write "" Response.Write "
Interest PaidPrincipal PaidRemaing Balance
" & Round(H, 2) & "" & Round(C, 2) & "" & Round(Q, 2) & "
" Response.Write "" Response.Write "" Response.Write "" 'Loop through And Get the Monthly Paymen ' ts for the length of the loan Do While X < N H=P*J Response.Write "" C=M-H Response.Write "" Q=P-C Response.Write "" P=Q X=X+1 Loop %>

ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home