Coder_m
Coder_m

Reputation: 51

'Newton-Raphson algorithm failed to converge'

I am trying to calculate xirr using the node xirr library but I am getting error that

Error: Newton-Raphson algorithm failed to converge

const xirr = require('xirr');

const cagr = xirr([
  { amount: -99995, when: new Date(2021, 7, 3)},
  { amount: 97642, when: new Date(2021, 7, 9) }
]);

console.log(cagr);

[![This is the error ][1]][1] link is below

1

Upvotes: 1

Views: 262

Answers (0)

Related Questions