In this article, I provide you with Java Script code for a loan payment calculator. The process of designing a loan payment calculator, like any calculator, can be divided into the five steps.
Welcome to Bucaro TecHelp!

Welcome to Bucaro TecHelp!
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact Advertise on Bucaro TecHelp Advertise Here RSS News Feeds News Feeds

HTML5 Solutions: Essential Techniques for HTML5 Developers

Essential Techniques for HTML5 Developers

HTML5 brings the biggest changes to HTML in years. Web designers now have new techniques, from displaying video and audio natively in HTML, to creating realtime graphics on a web page without a plugin.

This book provides a collection of solutions to all of the most common HTML5 problems. Every solution contains sample code that is production-ready and can be applied to any project.

Click Here

Java Script Loan Payment Calculator

The goal for any Web site owner is to attract visitors to their Web site and get them to stick around. This is referred to as making your Web site "sticky". One way to do this is to provide useful features like online calculators.

In this article, I provide you with Java Script code for a loan payment calculator. The process of designing a loan payment calculator, like any calculator, can be divided into the five steps listed below.

  1. Acquire the proper formula.
  2. Design an html form to get input values from the user.
  3. Code the basic calculation function.
  4. Add Code to format the output to the user.
  5. Add Code to handle errors.

Click here to view the working Loan Payment Calculator

The Loan Payment Formula

The loan payment formula is well known and can be found in many mathematics textbooks and at many locations on the Web. The formula is shown below.

                                    monthlyRate
monthlypayment = loanAMT x ----------------------------------
                           1  - ( 1 + monthlyRate) ^ -numPayments

loanAMT = The initial amount of the loan.
monthlyRate = The monthly interest (the annual interest rate / 12).
numPayments = number of payments (made monthly).

The important point about this formula is that it calculates the payment with compound interest. With compound interest you pay interest not only on the principal, but also on the accumulated interest. Yearly Compounding is the number of times per year that the compound interest calculation is performed. Interest is usually compounded monthly.

• In case you're not familiar with the syntax,
^ -numPayments means raise it to the negative power of the number of payments.

RSS Feed RSS Feed



Web Design Sections

Eloquent JavaScript: A Modern Introduction to Programming

Eloquent JavaScript

Eloquent JavaScript Eloquent JavaScript goes beyond the cut-and-paste scripts of the recipe books and teaches you to write code that's elegant and effective. You'll start with the basics of programming, and learn to use variables, control structures, functions, and data structures. Then you'll dive into the real JavaScript artistry: higher-order functions, closures, and object-oriented programming.

Reader Anthony says, "This book is not your typical Javascript book. Others have a utilitarian approach. In stark contrast, Eloquent JavaScript does not merely provide you a checklist of things to learn but rather paints a panorama of the possibilities that programming provides. Javascript is merely the tool used to introduce these to the reader.

Click here for more information.


[Site User Agreement] [Advertise on This site] [Search This Site] [Contact Form]
Copyright©2001-2011 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268