Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
Compound Interest with Monthly Contributions Calculation isn't Producing Correct Results

I'm trying to calculate compound interest of a principle amount with monthly contributions. I can't seem to figure out why my calculation aren't working. Any suggestion would be appreciated thanks.

        //Add Data to the Arrays
        while (i <= years) {
            nums.push(i + " Years");
            let newAmount = (principle * Math.pow(1 + (convertRate / frequency), frequency * i)) + ((mContribute * Math.pow(1 + (convertRate / frequency), frequency * i)) - 1) / (convertRate / frequency);
            let contributionBalance = principle + mContribute;
            let formatNum = newAmount.toFixed(2);
            balance.push(formatNum);
            contributions.push(contributionBalance);
            i++;
        }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!