The NPV calculation on Demand and Project form financial tab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 01:12 PM
I have found many articles on it but still not able to actually get the calculation work which gives the result as the populated number in NPV.
I see the formula many places but what is the t in the formulas]? Time period then what, year of the cost plan or fiscal period?
Any detailed example?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 02:17 PM
Hello Chandler,
This is the current NPV formula:
The script where the NPV is calculated is the following one:
IRRAndNPVAPI
Here is the code that does the calculation:
netPresentValue: function(rate){
var rate = rate/100, npv = this.args[0];
for (var i = 1; i < this.args.length; i++) {
npv +=(this.args[i] / Math.pow((1 + rate), i));
}
return Math.round(npv * 100) / 100;
},
Hope this helps you!!
Please mark my answer as correct and helpful if it is relevant for you!
Thanks,
Filipe Cruz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2022 03:51 AM
Hi,
Can you point me where this script is written.
Q 1. So whatever you have in formula it is all exactly as it is?
Q 2. What will be the value of n?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2022 01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 02:06 AM
Hi Chandler,
Please find the below example to understand how NPV is calculated:
Total planned cost of FY22 (Current year): 180000
Total planned benefit of FY22 (Current year): 240000
Total planned cost of FY23 (Current year + 1): 180000
Total planned benefit of FY22 (Current year + 1): 240000
ROI = Total Planned Benefit - Total Planned cost = 480000-360000 = 120000
NPV = (240000-180000) + [(240000-180000)/(1+0.11)] = 114054
The discount rate is applied to the planned cost and benefits amount for future calendar year to the power of difference between the future year and the current year, which in the above example is 1.