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

177
Views
How to achieve NPER functionality in javascript . To calculate loan payment period

Im looking for a solution to find the loan repayment period in months. To make it clear im trying to implement NPER functionality in Javascript . Spend a day with this , its becoming hopeless id like some help . I tried with Finance.js Library , but they donot have anything for NPER, Then tried to implement NPER logic :

var months = 12;
var rate = 9;
var loanAmount = 150000;
var monthlyPayment = -7000
var j = loanAmount / monthlyPayment;
var k = rate / months;
var x = 1 - (j * k);
var y = 1 + k;
var NPER = (Math.log(x)) / (Math.log(y))
console.log("NPER", NPER); 
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!