Skip to content

nategiraudeau/compound-interest-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compound Interest Calculator

A compound interest calculator web app built with ReactJS.

Try it out ->


Screen Shot 2021-10-03 at 2 42 15 PM

Screen Shot 2021-10-03 at 2 45 16 PM


Compound Interest Formula (JS):

function compoundInterest(p, r, n, t, c, cn) {
    let total = p;
    let principal = p;

    for (let i = 0; i < t * n; i++) {
        total += (c * cn) || 0;
        total = total + (total * r);

        principal += (c * cn) || 0;
    }

    return { total, principal };
}

About

A compound interest calculator web app built with ReactJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages