Logo

XLeratorDB/Financial Functions Documentation

FUNCTION REFERENCE - Financial Functions FUNCTIONS

Bond Figuration
ACCINTACT

Accrued interest on a bond where the coupon amounts are calculated as the actual number of days in the coupon period divided by the number of days in the year.

Read more
ACCRINT

Calculate the accrued interest for a security that pays periodic interest.

Read more
ACCRINTM

Calculate the accrued interest for a security that pays interest at maturity.

Read more
ADJCURRYIELD

Calculate the adjusted current yield.

Read more
AIFACTOR

Calculate the Accrued Interest Factor

Read more
AIFACTOR_IAM

Calculate the Accrued Interest Factor for an Interest-at-Maturity security

Read more
AIFACTOR_OFC

Calculate the Accrued Interest Factor for a bond during its odd first coupon period

Read more
AIFACTOR_OLC

Calculate the Accrued Interest Factor for a bond during its odd last coupon period

Read more
AIFACTOR_RPI

Calculate the Accrued Interest Factor for a Regular Periodic Interest period

Read more
AMORTRATE

Constant daily effective rate for bond/loan amortization

Read more
BONDAMORT

Bond amortization schedule using constant effective daily interest method

Read more
BONDCF

Cash flows for a bond paying regular periodic interest

Read more
BONDINT

Accrued interest on a bond paying regular, periodic interest

Read more
CFCONVEXITY

Calculate the convexity of a series of cash flows.

Read more
CFDURATION

Calculate the duration of a series of cash flows

Read more
CFMDURATION

Calculate the modified duration of a series of cash flows.

Read more
COMPINT

Calculate the accrued interest for a security where interest is compounded periodically and paid at maturity

Read more
CONVEXITY

Convexity of a bond

Read more
COUPDAYBS

Number of days from previous coupon to settlement date

Read more
COUPDAYS

Number of days in a coupon period

Read more
COUPDAYSNC

Number of days from settlement to next coupon date

Read more
COUPNCD

Next coupon date

Read more
COUPNUM

Number of coupons from settlement to maturity

Read more
COUPPCD

Calculate the immediately previous coupon date before the settlement date.

Read more
DIRTYPRICE

Dirty price of a bond

Read more
DIRTYYIELD

Calculate the yield of a bond from its dirty price.

Read more
DIS

Price, discount rate, and/or yield of a discount security

Read more
DISC

Discount rate of a discount security

Read more
DISFACTORS

Factors for the price calculation of a discount security

Read more
DURATION

Duration of a bond paying regular, periodic interest

Read more
IAM

Price and/or yield of a security paying interest at maturity

Read more
IAMFACTORS

Factors for the price calculation of a security paying interest at maturity

Read more
INTRATE

Calculate the interest rate for a fully invested security.

Read more
MDURATION

Modified duration on a bond paying regular, periodic interest

Read more
ODDCOMPINT

Calculate the accrued interest in first coupon period for a bond with an odd first coupon and a par value of 100

Read more
ODDFINT

Accrued interest for a bond with an odd first coupon

Read more
ODDFPRICE

Price of a security with an odd first coupon

Read more
ODDFYIELD

Calculate the YIELD with an odd first period

Read more
ODDLINT

Accrued interest for a bond with an odd last coupon

Read more
ODDLPRICE

Price of a bond with an odd last coupon

Read more
ODDLYIELD

Calculate the YIELD with an odd last period

Read more
OFC

Calculate the price and/or yield of a bond with an odd first coupon using the ODDFPRICE equation

Read more
OFCCONVEXITY

Convexity of a bond with and odd first coupon

Read more
OFCDURATION

Duration of a bond with an odd first coupon

Read more
OFCFACTORS

Returns the components of the ODDFPRICE equation

Read more
OFCMDURATION

Modified duration of a bond with an odd first coupon

Read more
OFL

Calculate the price and/or yield of a bond with an odd first and an odd last coupon using the OFLPRICE equation

Read more
OFLCONVEXITY

Convexity of a bond with an odd first and odd last coupon

Read more
OFLDURATION

Duration of a bond with an odd first and odd last coupon

Read more
OFLFACTORS

Returns the components of the OFLPRICE equation

Read more
OFLMDURATION

Modified duration of a bond with an odd first and odd last coupon

Read more
OFLPRICE

Price of a security with an odd last coupon.

Read more
OFLYIELD

Yield of a bond with an odd first and an odd last coupon

Read more
OLC

Calculate the price and/or yield of a bond with an odd last coupon using the ODDLPRICE equation

Read more
OLCCONVEXITY

Convexity of a bond with and odd last coupon

Read more
OLCDURATION

Duration of a bond with an odd last coupon

Read more
OLCFACTORS

Returns the components of the ODDLPRICE equation

Read more
OLCMDURATION

Modified duration of a bond with an odd last coupon

Read more
PRICE

Price of a bond paying regular periodic interest

Read more
PRICEACT

Price of a bond where the coupon amounts are calculated as the actual number of days in the coupon period divided by the number of days in the year.

Read more
PRICEACTTV

Generate the cash flows and discount factors for a bond where the coupon amounts are calculated as the actual number of days in the coupon period divided by the number of days in the year

Read more
PRICEDISC

Price of a discount security

Read more
PRICEFR

Price of a bond with forced redemptions

Read more
PRICEMAT

Price of an interest-at-maturity security

Read more
PRICESTEP

Calculate the Price of a security with step-up rates

Read more
RECEIVED

Calculate the amount received at maturity for a fully invested security.

Read more
RPI

Calculate the price and/or yield of a bond with regular periodic coupons

Read more
RPICONVEXITY

Convexity of a bond paying regular periodic interest

Read more
RPIDURATION

Duration of a bond paying regular periodic interest

Read more
RPIFACTORS

Factors for the calculation of the price of a bond that pays regular periodic interest

Read more
RPIMDURATION

Modified duration of a bond paying regular period interest

Read more
STEPACCINT

Accrued interest of a stepped-coupon bond

Read more
STEPCF

Calculate the cash flows of a stepped-rate bond.

Read more
STEPCONVEXITY

Convexity of a stepped-coupon bond

Read more
STEPDURATION

Duration of a stepped-coupon bond

Read more
STEPMDURATION

Modified duration of a stepped coupon bond

Read more
TBILLEQ

Calculate the bond-equivalent yield for a Treasury bill.

Read more
TBILLPRICE

Calculate the price per 100 face value for a Treasury bill.

Read more
TBILLYIELD

Yield of a US Treasury Bill

Read more
YIELD

Yield of a bond paying regular periodic coupon

Read more
YIELDACT

Yield on a bond where the coupon amounts are calculated as the actual number of days in the coupon period divided by the number of days in the year

Read more
YIELDDISC

Discount rate of a discount security

Read more
YIELDFR

Yield of a bond with forced redemptions

Read more
YIELDMAT

Calculate the YIELD of an Interest-at-Maturity Security

Read more
YIELDSTEP

Calculate the Yield of a security with step-up rates

Read more
Internal Rates Of Return
AMORTIZECASHFLOWS

Discounted cash flow schedule

Read more
CDRCashflowIRR

Calculate the internal rate of return on cash flows produced using the CDRCASHFLOWinputs.

Read more
IRR

Internal rate of return for irregular periodic cash flows

Read more
IRR_q

Calculate an internal rate of return for a series of cash flows.

Read more
MIRR

Modified internal rate of return for periodic irregular cash flows

Read more
MIRR_q

Calculate the modified internal rate of return, where positive and negative cash flows are financed at different rates.

Read more
XIRR

Internal rate of return for irregular cash flows

Read more
XIRR_q

Calculate an internal rate of return for a series of cash flows on different dates.

Read more
XIRR30360

Internal rate of return for irregular cash flows using a 30/360 day-count convention

Read more
XIRRT

Internal rate of return for cash flows discounted using XNPVT

Read more
XMIRR

Calculate the modified internal rate of return, where positive and negative cash flows are financed at different rates and where the cash flows occur irregularly and are specified by date.

Read more
Loans
AMORTSCHED

Amortization schedule for a loan with constant periodic payments

Read more
Balloon

Schedule with periodic interest payments and principal repaid at maturity

Read more
Bullet

Schedule with single interest and principal payment at maturity

Read more
CDRCashflow

Loan amortization model with conditional prepayment and constant default rates

Read more
CDRRate

Calculate the CDR Rate given the loan default amount.

Read more
ConstantCashFlow

Schedule with equal periodic cash flows

Read more
ConstantCashFlowFR

Schedule for a loan with a fixed maturity date and annuity-style payments

Read more
ConstantPaymentAmount

Schedule with no maturity with fixed periodic payment amount

Read more
ConstantPrincipal

Schedule with fixed maturity date where the periodic principal payment is calculated on a straight-line basis

Read more
ConstantPrincipalAmount

Schedule with no fixed maturity with a fixed periodic principal payment

Read more
ConstantPrincipalRate

Schedule with no fixed maturity where a fixed percentage principal payment

Read more
CONSTPRINAMORT

Amortization schedule of a loan with a fixed principal repayment

Read more
CUMLIPMT

Calculate the cumulative interest payments for a loan with an odd first period

Read more
CUMLPPMT

Calculate the cumulative principal payments for a loan with an odd first period

Read more
EFFECT

Calculate the effective annual interest rate.

Read more
FVSCHEDULE

Calculate the future value of an initial investment using a series of compound rates.

Read more
LIPMT

Calculate the interest payment on a loan with an odd first period

Read more
LPMT

periodic payment of an annuity with an odd first period

Read more
LPMTSCHED

Amortization schedule for a loan with constant periodic payemnts and an odd first period where interest is accrued using the US rule

Read more
LPPMT

principal payment on a loan with an odd first period

Read more
LRATE

annual interest rate for an annuity with an odd first period

Read more
NOMINAL

Calculate the annual nominal interest rate.

Read more
NPD

Next payment date of a loan

Read more
NPNO

Next payment number of a loan

Read more
NUMPMTS

Calculate the number of payments from the first interest payment date to the last payment date; in other words, the total number of payments over the life of the loan.

Read more
PAYMENTPERIODS

Number of months until first payment date, start of grace period, end of grace period, and total number payments for a loan

Read more
PERIODRATE

Adjust the nominal rate of a loan

Read more
PPD

Previous payment date of a loan

Read more
PPNO

Previous payment number of a loan

Read more
R78IPMT

Interest payment calculated using the Rule-of-78

Read more
R78PAYOFF

Calculate the payoff amount for a loan or lease using the Rule-of-78.

Read more
R78PPMT

principal portion of an annuity payment using the Rule-of-78

Read more
R78REBATE

Calculate the rebate amount for a loan or lease using the Rule-of-78.

Read more
SimpleAccrual

Calculate the daily interest accruals over a range of dates for a single cash flow or a series of cash flows, using a single rate or a series of rates.

Read more
SMMAmort

Calculate a cash-flow schedule for a loan with a fixed periodic payment with Conditional Prepayment Rates (CPR) and Constant Default Rates (CDR) applied.

Read more
TOTALINT

total of interest payments over the life of an annuity

Read more
UNEQUALLOANPAYMENTS

Calculate a payment schedule for a loan where the interest payment frequency and the principal payment frequency are different, or the loan starts with an interest only schedule with principal repayments commencing after the first interest payment date.

Read more
Capital Asset Pricing Model
BetaCoKurt

Calculate the beta-cokurtosis of an asset return and a benchmark return

Read more
BetaCoSkew

calculate the beta-coskewness of an asset return and a benchmark return

Read more
BetaCoVar

Calculate the beta-covariance of an asset return and a benchmark return

Read more
DownsideDeviation

Calculate the downside deviation of asset returns

Read more
DownsideFrequency

Calculate the downside frequency of asset returns

Read more
DownsidePotential

Calculate the downside potential of asset returns

Read more
EQALPHA

the intercept of the security characteristic line (SCL), between an asset and a specified benchmark

Read more
EQBETA

the slope of the security characteristic line (SCL), between an asset and a specified benchmark

Read more
EQVOLATILITY

Calculate the historical volatility based upon price or valuation data.

Read more
FinCoKurt

Calculate the cokurtosis of an asset return and a benchmark return

Read more
FinCoSkew

Calculate coskewness of an asset return and a benchmark return.

Read more
INFORATIO

Information ratio based upon return data

Read more
INFORATIO2

Information ratio based upon price or valuation data

Read more
MAXDD

Maximum drawdown based on net asset or portfolio values

Read more
MAXDD2

Calculate the maximum drawdown based on net asset or portfolio returns.

Read more
MOIC

Calculate the multiple of invested capital.

Read more
Omega

Calculate the Omega of asset returns

Read more
OmegaExcessReturn

Calculate the Omega Excess Return

Read more
OmegaSharpeRatio

Calculate the Omega-Sharpe ratio of asset returns

Read more
SemiDeviation

Calculate the semi-deviation of asset returns

Read more
SemiVariance

Calculate the semi-variance of asset returns.

Read more
SHARPE

Sharpe ratio based upon return data

Read more
SHARPE2

Sharpe ratio based upon price or valuation data

Read more
SORTINO

Sortino ratio based upon return data

Read more
SORTINO2

Sortino ratio based upon price or valuation data

Read more
SpecificRisk

Calculate Specific Risk, the standard deviation of the error term in the regression equation

Read more
SystematicRisk

Calculate the Systematic Risk

Read more
TotalRisk

Calculate Total Risk.

Read more
TREYNOR

TREYNOR ratio based upon return data

Read more
TREYNOR2

Calculate the Treynor ratio based upon price or valuation data.

Read more
UpsideFrequency

Calculate the upside frequency of asset returns

Read more
UpsidePotentialRatio

Calculate the Upside Potential Ratio

Read more
UpsideRisk

Calculate the Upside Risk, Upside Variance or Upside Deviation.

Read more
Spread Pricing
BondPriceFromZeroes

Bond pricing from the zero coupon curve

Read more
CMTCurve

Constant Maturity Treasury curve

Read more
LogNormalIRLattice

LogNormal Interest Rate Lattice

Read more
OAC

Option Adjusted Convexity

Read more
OAD

Calculate the option-adjusted duration on a bond.

Read more
OAS

Option Adjusted Spread

Read more
PriceFromIRLattice

Bond Pricing using Option Adjusted Spread

Read more
PRICEFROMZEROESTVF

Zero Volatility spread details

Read more
ZSPREAD

Calculate the zero-volatility or static spread on a bond.

Read more
Business Days Calculations
BUSDAYS

Calculate the number of business days between two dates

Read more
BUSDAYSWE

Number of business days between 2 dates with specified weekend days

Read more
BUSINESSDATE

Calculate a Business Date from an offset

Read more
BUSINESSDATEWE

Calculate a Business Date from an offset and specified weekend days

Read more
CALCDATE

Calculate a datetime value for a specified Year, Month, and Day.

Read more
DATEFLOAT

Calculate a float value for a specified Year, Month, and Day.

Read more
DATEINT

Calculate an integer value for a specified Year, Month, and Day.

Read more
DAYS360

Number of days using 30/360 day-count conventions

Read more
DAYSINMONTH

Number of days in the month of the specified date

Read more
DAYSINYEAR

Number of days in the year of the specified date

Read more
DAYSNL

Number of days excluding leap years

Read more
EASTER

Calculate the date of Western Easter for the specified year.

Read more
EDATE

Calculate the date that is the indicated number of months before or after a specified date (the start date).

Read more
EOMONTH

Calculate the date for the last day of the month that is the indicated number of months before or after the start date.

Read more
FIRSTWEEKDAY

Calculate the last occurrence of a weekday in a given month

Read more
ISREGULARPAY

Calculate if a date is a regular payment date for a loan given the first payment date, the issue date, and the number of payments per year.

Read more
LASTWEEKDAY

Calculate the first occurrence of a weekday in a given month

Read more
NBD

Create holiday string

Read more
NUMMONTHS

Number of months between two dates

Read more
T360

Calculate the number of periods (fractional part included) from a cash flow date to a settlement date.

Read more
YEARFRAC

Calculate the difference between two dates as a fraction of a year

Read more
Net Present Value
CDRCashflowDCF

Calculate the discounted cash flow value for a loan with a fixed periodic payment with Conditional Prepayment Rates (CPR) and Constant Default Rates (CDR) applied.

Read more
EFV

Calculate the future value of a cash flow between two periods.

Read more
ENPV

Net Present Value for irregular periodic cash flows

Read more
ENPV_q

Calculate the net present value of an investment based on a series of periodic cash flows and a discount rate.

Read more
EPV

Calculate the discounted value of a cash flow between two periods.

Read more
NFV

Calculate the net future value of an investment based on a series of periodic cash flows and a rate.

Read more
NPV

Net Present Value for irregular periodic cash flows using the Excel definition

Read more
NPV_q

Calculate the net present value of an investment based on a series of periodic cash flows and a discount rate.

Read more
XDCF

Discounted cash flow value

Read more
XFV

Calculate the future value of a cash flow between two dates.

Read more
XNFV

Net Future Value for irregular cash flows

Read more
XNPV

Net Present Value for irregular cash flows

Read more
XNPV_q

Calculate the net present value of a series of irregular cash flows—cash flows of varying amounts occurring on various dates.

Read more
XNPV30360

Net Present Value for irregular cash flows using a 30/360 day-count convention

Read more
XNPVT

Calculate the net present value for a series of cash flows with irregular time periods—cash flows of varying amount occurring at various points in time.

Read more
XPV

Calculate the discounted value of a cash flow between two dates.

Read more
Annuity Calculations
CUMIPMT

Cumulative interest payments for an annuity

Read more
CUMODDFIPMT

Cumulative interest on the periodic annuity payments between a start period and an end period

Read more
CUMODDFPPMT

Cumulative principal on the periodic annuity payments between a start period and an end period

Read more
CUMPRINC

cumulative principal payments for an annuity

Read more
FV

Calculate future value of an annuity based on periodic, constant payments and a constant interest rate.

Read more
FVGA

Calculate the future value of a growing annuity.

Read more
IPMT

Calculate the interest portion of a periodic payment

Read more
NPER

number of periods in an annuity

Read more
NPERGA

Calculate the number of whole periods for a growing annuity to reach a future value.

Read more
ODDFIPMT

Interest portion of a periodic payment for an annuity with an odd first period

Read more
ODDFPMT

Periodic payment for an annuity with an odd first period

Read more
ODDFPMTSCHED

Amortization schedule for an annuity with odd first period

Read more
ODDFPPMT

Principal portion of a periodic payment for an annuity with an odd first period

Read more
ODDFPV

Present Value of an annuity with an odd first period

Read more
ODDFRATE

Rate of an annuity with an odd first period given number of periods, periodic payment, present value, and future value.

Read more
ODDFSCHED

Calculate an annuity-like payment schedule where the first period is a different length of the time than all subsequent periods and those subsequent periods are assumed to be of equal length.

Read more
ODDPV

Calculate the present value of an annuity with an odd first period

Read more
PDURATION

Calculate the number of periods required by an investment to reach a specified value.

Read more
PMT

Calculate the periodic payment for an annuity

Read more
PMTGA

Calculate the initial payment for a growing annuity, given the future value.

Read more
PMTSCHED

Calculate an amortization schedule for a loan with no odd periods.

Read more
PPMT

principal portion of an annuity

Read more
PV

Present value of an annuity

Read more
PVGA

Calculate the present value of a growing annuity.

Read more
RATE

Rate of an annuity given number of periods, periodic payment, present value, and future value

Read more
RRI

Calculate an equivalent interest rate for the growth of an investment.

Read more
Depreciation
DB

Calculate the depreciation of an asset for a specified period using the fixed-declining balance method.

Read more
DDB

Calculate the depreciation of an asset for a specified period using the double-declining balance method or some other user-specified method.

Read more
SLN

Calculate the straight-line depreciation of an asset for one period.

Read more
SYD

Calculate the sum-of-years' digits depreciation of an asset for a specified period.

Read more
VDB

Calculate the depreciation of an asset for a specified or partial period by using a declining balance method.

Read more
Yield Curves
DFINTERP

Calculate the interpolated discount factor given a date.

Read more
ED_FUT_CONV_ADJ_HL

Calculate a Eurodollars futures price into a forward rate using the Ho Lee convexity adjustment formula.

Read more
ED_FUT2DATE

Calculate a Eurodollar futures delivery code into a delivery date.

Read more
ED_FUTYF

Calculate the amount of time (in years) from a start date to the delivery date of a futures contract.

Read more
INTERPDFACT

Calculate interpolated discount factors for a range of dates.

Read more
NELSONSIEGEL

Calculate the zero coupon rate for a date from the supplied parameters.

Read more
NSCOEF

Calculate the Nelson Siegel coefficients for a zero coupon curve.

Read more
NSCOEF2

Calculate the Nelson Siegel coefficients for a zero coupon curve.

Read more
SWAPCURVE

Calculate discount factors, zero-coupon rates, and continuously compounded zero-coupon rates from a series of cash rates, futures prices, or swaps rates.

Read more
TENOR2DATE

Convert an alphanumeric expression into a swaps or money market maturity date.

Read more
ZEROCOUPON

Calculate an interpolated zero-coupon rate from a series of cash rates, futures prices, or swaps rates.

Read more
Other
DOLLARDE

Dollar - fraction to Decimal

Read more
DOLLARFR

Calculate a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction.

Read more
RelativeError

Calculate the relative error between two values.

Read more
XLDB_ENGINEERING_VERSION

Get version information for the XLeratorDB / engineering library.

Read more
XLDB_FINANCIAL_VERSION

Calculate version information for the XLeratorDB/financial module.

Read more
XLDB_MATH_VERSION

Display version information for the XLeratorDB/math module.

Read more
XLDB_OPTIONS_VERSION

Return XLeratorDB / options version information.

Read more
XLDB_STATISTICS_VERSION

Displays package Version and Licensing Information

Read more
XLDB_STRINGS_VERSION

Get the XLeratorDB / strings version information.

Read more
XLDB_WINDOWING_VERSION

Return XLeratorDB / windowing version information.

Read more
Time Weighted Rate Of Return
EMDIETZ

Enhanced Modified Dietz

Read more
GTWRR

Generalized time-weighted rate of return

Read more
LMDIETZ

Linked Modified Dietz

Read more
MDIETZ

Modified Dietz

Read more
MDIETZ_q

Calculate the performance of an investment portfolio based on time-weighted cash flows.

Read more
TWROR

Time-weighted rate of return with market value indicators

Read more
TWRR

Calculate time-weighted rate of return.

Read more
Inventory
FIFOend

Calculate the ending FIFO balances in an ordered resultant table.

Read more
FIFOtvf

Calculate running FIFO (First In, First Out) values in an ordered resultant table.

Read more
LIFOend

Calculate the ending LIFO balances in an ordered resultant table.

Read more
LIFOtvf

Calculate the running LIFO balances in an ordered resultant table.

Read more
WACtvf

Calculate running weighted-average cost values in an ordered resultant table.

Read more