- Datagration Knowledge Base
- P#
- Economic Functions
-
Getting Started
-
Customer Training
-
Customer Success
-
Updates
-
Production Optimization
-
Completion Optimization
-
Environmental, Social & Governance
-
Development, Acquisition & Divestitures
-
Enhanced Oil Recovery
-
Admin
-
P#
- Getting Started with P#
- Data Cleansing
- String Functions
- Scenario Functions
- Regression Functions
- Placeholder Functions
- Neighborhood Functions
- Mathematical Functions
- Logic Functions
- Entities Function
- Moving Window Functions
- Time and Date Functions
- Statistical Functions
- Economic Functions
- Data Handling
- Additional Functions
- Directional Functions
- Machine Learning Functions
- DCA Functions
-
Packages
NPV()
Returns the net present value for series of values and specified interest rate. Input numericExpression should have a value for every time step; missing values will be treated as 0.
Syntax
NPV(expression, rate)
- expression: signal expression
- rate: interest rate in decimal fraction
Example
NPV("oil production rate" in "m3/h", 0.15)
NPV Overload to specify a start date
Returns the net present value for series of values and specified rate from the specified start date forward to the end of the scope. Input numericExpression should have a value for every time step; missing values will be treated as 0.
Calculates a forward NPV value from that time step.
Syntax
NPV(expression, Rate, Time Step)
Example
NPV("cash flow" in "USD", 0.15, CurrentStep())
NPV(Column "Cash flow" in "USD", 0.10, CurrentStep())