خرید بک لینک

Vote count: 0

I am currently using http://financejs.org/#NPV for a proyect I am working at.

The way I should enter the data is the following so that the computation is correct

finance.NPV(10, -500000, 200000, 300000, 200000);

The last numbers in bold are the cashflows. I am trying to use an array for the cashflows instead.

This is my current code:

i = 0;

cashFlow = [];

while (i < anos50K) {
  periodos.push(ahorroAnual);
  i++;
}

console.log('Periodos: ' + cashFlow);

console.log('Inversion Total: ' + invTotal);

npv = finance.NPV(4, invTotal, cashFlow);

console.log('NPV : ' + npv);

but I keep getting NaN

what should I do?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 10 ارديبهشت 1395 ساعت: 1:15

صفحه بندی