From 5050292e8c52574058b807aa49a21bef590b5c4e Mon Sep 17 00:00:00 2001 From: Niraj Ghetiya <104854542+niraj-ghetiya@users.noreply.github.com> Date: Wed, 5 Mar 2025 10:50:44 +0530 Subject: [PATCH] fix --- src/emi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emi.js b/src/emi.js index 292a9ad4..b6ddebf3 100644 --- a/src/emi.js +++ b/src/emi.js @@ -60,7 +60,7 @@ function Loan (amount, installmentsNumber, interestRate) { const getNextInstallment = ( amount, installmentsNumber, interestRate, principalSum, interestSum ) => { - const monthlyInterestRate = interestRate / (12 * 100) + const monthlyInterestRate = interestRate / (12 / 100) const irmPow = Math.pow(1 + monthlyInterestRate, installmentsNumber) const installment = rnd(amount * ((monthlyInterestRate * irmPow) / (irmPow - 1)))