Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The documentation below is generated from the
system.functions system tablefinancialInternalRateOfReturn
Introduced in: v25.7.0 Calculates the Internal Rate of Return (IRR) for a series of cash flows occurring at regular intervals. IRR is the discount rate at which the Net Present Value (NPV) equals zero. IRR attempts to solve the following equation: Syntaxcashflows— Array of cash flows. Each value represents a payment (negative value) or income (positive value).Array(Int8/16/32/64)orArray(Float*)[, guess]— Optional initial guess (constant value) for the internal rate of return (default 0.1).Float*
NaN if the calculation cannot converge, input array is empty or has only one element, all cash flows are zero, or other calculation errors occur. Float64
Examples
simple_example
Query
Response
Query
Response
financialInternalRateOfReturnExtended
Introduced in: v25.7.0 Calculates the Extended Internal Rate of Return (XIRR) for a series of cash flows occurring at irregular intervals. XIRR is the discount rate at which the net present value (NPV) of all cash flows equals zero. XIRR attempts to solve the following equation (example forACT_365F):
Arrays should be sorted by date in ascending order. Dates need to be unique.
Syntax
cashflow— An array of cash flows corresponding to the dates in second param.Array(Int8/16/32/64)orArray(Float*)date— A sorted array of unique dates corresponding to the cash flows.Array(Date)orArray(Date32)[, guess]— Optional. Initial guess (constant value) for the XIRR calculation.Float*[, daycount]— Optional day count convention (default ‘ACT_365F’). Supported values:- ‘ACT_365F’ - Actual/365 Fixed: Uses actual number of days between dates divided by 365
- ‘ACT_365_25’ - Actual/365.25: Uses actual number of days between dates divided by 365.25
String
Float64
Examples
simple_example
Query
Response
Query
Response
Query
Response
financialNetPresentValue
Introduced in: v25.7.0 Calculates the Net Present Value (NPV) of a series of cash flows assuming equal time intervals between each cash flow. Default variant (start_from_zero = true):
Excel-compatible variant (start_from_zero = false):
Syntax
rate— The discount rate to apply.Float*cashflows— Array of cash flows. Each value represents a payment (negative value) or income (positive value).Array(Int8/16/32/64)orArray(Float*)[, start_from_zero]— Optional boolean parameter indicating whether to start the NPV calculation from period0(true) or period1(false, Excel-compatible). Default: true.Bool
Float64
Examples
default_calculation
Query
Response
Query
Response
financialNetPresentValueExtended
Introduced in: v25.7.0 Calculates the Extended Net Present Value (XNPV) for a series of cash flows occurring at irregular intervals. XNPV considers the specific timing of each cash flow when calculating present value. XNPV equation forACT_365F:
Arrays should be sorted by date in ascending order. Dates need to be unique.
Syntax
rate— The discount rate to apply.Float*cashflows— Array of cash flows. Each value represents a payment (negative value) or income (positive value). Must contain at least one positive and one negative value.Array(Int8/16/32/64)orArray(Float*)dates— Array of dates corresponding to each cash flow. Must have the same size as cashflows array.Array(Date)orArray(Date32)[, daycount]— Optional day count convention. Supported values:'ACT_365F'(default) — Actual/365 Fixed,'ACT_365_25'— Actual/365.25.String
Float64
Examples
Basic usage
Query
Response
Query
Response