PHPExcel_Calculation_Financial
| category | PHPExcel |
|---|---|
| package | PHPExcel_Calculation |
| copyright | Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
ACCRINT(mixed $issue, mixed $firstinterest, mixed $settlement, float $rate, float $par, integer $frequency, integer $basis) : float
Returns the accrued interest for a security that pays periodic interest.
Excel Function: ACCRINT(issue,firstinterest,settlement,rate,par,frequency[,basis])
| access | public |
|---|---|
| category | Financial Functions |
mixedThe security's issue date.
mixedThe security's first interest date.
mixedThe security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
floatThe security's annual coupon rate.
floatThe security's par value. If you omit par, ACCRINT uses $1,000.
integerthe number of coupon payments per year. Valid frequency values are: 1 Annual 2 Semi-Annual 4 Quarterly If working in Gnumeric Mode, the following frequency options are also available 6 Bimonthly 12 Monthly
integerThe type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatACCRINTM(mixed $issue, mixed $settlement, float $rate, float $par, integer $basis) : float
Returns the accrued interest for a security that pays interest at maturity.
Excel Function: ACCRINTM(issue,settlement,rate[,par[,basis]])
| access | public |
|---|---|
| category | Financial Functions |
mixedissue The security's issue date.
mixedsettlement The security's settlement (or maturity) date.
floatrate The security's annual coupon rate.
floatpar The security's par value. If you omit par, ACCRINT uses $1,000.
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatAMORDEGRC(float $cost, mixed $purchased, mixed $firstPeriod, mixed $salvage, float $period, float $rate, integer $basis) : float
Returns the depreciation for each accounting period. This function is provided for the French accounting system. If an asset is purchased in the middle of the accounting period, the prorated depreciation is taken into account. The function is similar to AMORLINC, except that a depreciation coefficient is applied in the calculation depending on the life of the assets. This function will return the depreciation until the last period of the life of the assets or until the cumulated value of depreciation is greater than the cost of the assets minus the salvage value.
Excel Function: AMORDEGRC(cost,purchased,firstPeriod,salvage,period,rate[,basis])
| access | public |
|---|---|
| category | Financial Functions |
floatcost The cost of the asset.
mixedpurchased Date of the purchase of the asset.
mixedfirstPeriod Date of the end of the first period.
mixedsalvage The salvage value at the end of the life of the asset.
floatperiod The period.
floatrate Rate of depreciation.
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatAMORLINC(float $cost, mixed $purchased, mixed $firstPeriod, mixed $salvage, float $period, float $rate, integer $basis) : float
Returns the depreciation for each accounting period. This function is provided for the French accounting system. If an asset is purchased in the middle of the accounting period, the prorated depreciation is taken into account.
Excel Function: AMORLINC(cost,purchased,firstPeriod,salvage,period,rate[,basis])
| access | public |
|---|---|
| category | Financial Functions |
floatcost The cost of the asset.
mixedpurchased Date of the purchase of the asset.
mixedfirstPeriod Date of the end of the first period.
mixedsalvage The salvage value at the end of the life of the asset.
floatperiod The period.
floatrate Rate of depreciation.
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatCOUPDAYBS(mixed $settlement, mixed $maturity, mixed $frequency, integer $basis) : float
Returns the number of days from the beginning of the coupon period to the settlement date.
Excel Function: COUPDAYBS(settlement,maturity,frequency[,basis])
| access | public |
|---|---|
| category | Financial Functions |
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
mixedfrequency the number of coupon payments per year. Valid frequency values are: 1 Annual 2 Semi-Annual 4 Quarterly If working in Gnumeric Mode, the following frequency options are also available 6 Bimonthly 12 Monthly
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatCOUPDAYS(mixed $settlement, mixed $maturity, mixed $frequency, integer $basis) : float
Returns the number of days in the coupon period that contains the settlement date.
Excel Function: COUPDAYS(settlement,maturity,frequency[,basis])
| access | public |
|---|---|
| category | Financial Functions |
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
mixedfrequency the number of coupon payments per year. Valid frequency values are: 1 Annual 2 Semi-Annual 4 Quarterly If working in Gnumeric Mode, the following frequency options are also available 6 Bimonthly 12 Monthly
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatCOUPDAYSNC(mixed $settlement, mixed $maturity, mixed $frequency, integer $basis) : float
Returns the number of days from the settlement date to the next coupon date.
Excel Function: COUPDAYSNC(settlement,maturity,frequency[,basis])
| access | public |
|---|---|
| category | Financial Functions |
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
mixedfrequency the number of coupon payments per year. Valid frequency values are: 1 Annual 2 Semi-Annual 4 Quarterly If working in Gnumeric Mode, the following frequency options are also available 6 Bimonthly 12 Monthly
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatCOUPNCD(mixed $settlement, mixed $maturity, mixed $frequency, integer $basis) : mixed
Returns the next coupon date after the settlement date.
Excel Function: COUPNCD(settlement,maturity,frequency[,basis])
| access | public |
|---|---|
| category | Financial Functions |
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
mixedfrequency the number of coupon payments per year. Valid frequency values are: 1 Annual 2 Semi-Annual 4 Quarterly If working in Gnumeric Mode, the following frequency options are also available 6 Bimonthly 12 Monthly
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
mixedExcel date/time serial value, PHP date/time serial value or PHP date/time object,
depending on the value of the ReturnDateType flagCOUPNUM(mixed $settlement, mixed $maturity, mixed $frequency, integer $basis) : integer
Returns the number of coupons payable between the settlement date and maturity date, rounded up to the nearest whole coupon.
Excel Function: COUPNUM(settlement,maturity,frequency[,basis])
| access | public |
|---|---|
| category | Financial Functions |
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
mixedfrequency the number of coupon payments per year. Valid frequency values are: 1 Annual 2 Semi-Annual 4 Quarterly If working in Gnumeric Mode, the following frequency options are also available 6 Bimonthly 12 Monthly
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
integerCOUPPCD(mixed $settlement, mixed $maturity, mixed $frequency, integer $basis) : mixed
Returns the previous coupon date before the settlement date.
Excel Function: COUPPCD(settlement,maturity,frequency[,basis])
| access | public |
|---|---|
| category | Financial Functions |
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
mixedfrequency the number of coupon payments per year. Valid frequency values are: 1 Annual 2 Semi-Annual 4 Quarterly If working in Gnumeric Mode, the following frequency options are also available 6 Bimonthly 12 Monthly
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
mixedExcel date/time serial value, PHP date/time serial value or PHP date/time object,
depending on the value of the ReturnDateType flagCUMIPMT(float $rate, integer $nper, float $pv, integer $start, integer $end, integer $type) : float
Returns the cumulative interest paid on a loan between the start and end periods.
Excel Function: CUMIPMT(rate,nper,pv,start,end[,type])
| access | public |
|---|---|
| category | Financial Functions |
floatThe Interest rate
integerThe total number of payment periods
floatPresent Value
integerThe first period in the calculation. Payment periods are numbered beginning with 1.
integerThe last period in the calculation.
integerA number 0 or 1 and indicates when payments are due: 0 or omitted At the end of the period. 1 At the beginning of the period.
floatCUMPRINC(float $rate, integer $nper, float $pv, integer $start, integer $end, integer $type) : float
Returns the cumulative principal paid on a loan between the start and end periods.
Excel Function: CUMPRINC(rate,nper,pv,start,end[,type])
| access | public |
|---|---|
| category | Financial Functions |
floatThe Interest rate
integerThe total number of payment periods
floatPresent Value
integerThe first period in the calculation. Payment periods are numbered beginning with 1.
integerThe last period in the calculation.
integerA number 0 or 1 and indicates when payments are due: 0 or omitted At the end of the period. 1 At the beginning of the period.
floatDB(float $cost, float $salvage, integer $life, integer $period, integer $month) : float
Returns the depreciation of an asset for a specified period using the fixed-declining balance method. This form of depreciation is used if you want to get a higher depreciation value at the beginning of the depreciation (as opposed to linear depreciation). The depreciation value is reduced with every depreciation period by the depreciation already deducted from the initial cost.
Excel Function: DB(cost,salvage,life,period[,month])
| access | public |
|---|---|
| category | Financial Functions |
floatcost Initial cost of the asset.
floatsalvage Value at the end of the depreciation. (Sometimes called the salvage value of the asset)
integerlife Number of periods over which the asset is depreciated. (Sometimes called the useful life of the asset)
integerperiod The period for which you want to calculate the depreciation. Period must use the same units as life.
integermonth Number of months in the first year. If month is omitted, it defaults to 12.
floatDDB(float $cost, float $salvage, integer $life, integer $period, float $factor) : float
Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify.
Excel Function: DDB(cost,salvage,life,period[,factor])
| access | public |
|---|---|
| category | Financial Functions |
floatcost Initial cost of the asset.
floatsalvage Value at the end of the depreciation. (Sometimes called the salvage value of the asset)
integerlife Number of periods over which the asset is depreciated. (Sometimes called the useful life of the asset)
integerperiod The period for which you want to calculate the depreciation. Period must use the same units as life.
floatfactor The rate at which the balance declines. If factor is omitted, it is assumed to be 2 (the double-declining balance method).
floatDISC(mixed $settlement, mixed $maturity, integer $price, integer $redemption, integer $basis) : float
Returns the discount rate for a security.
Excel Function: DISC(settlement,maturity,price,redemption[,basis])
| access | public |
|---|---|
| category | Financial Functions |
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
integerprice The security's price per $100 face value.
integerredemption The security's redemption value per $100 face value.
integerbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatDOLLARDE(float $fractional_dollar, integer $fraction) : float
Converts a dollar price expressed as an integer part and a fraction part into a dollar price expressed as a decimal number. Fractional dollar numbers are sometimes used for security prices.
Excel Function: DOLLARDE(fractional_dollar,fraction)
| access | public |
|---|---|
| category | Financial Functions |
floatFractional Dollar
integerFraction
floatDOLLARFR(float $decimal_dollar, integer $fraction) : float
Converts a dollar price expressed as a decimal number into a dollar price expressed as a fraction. Fractional dollar numbers are sometimes used for security prices.
Excel Function: DOLLARFR(decimal_dollar,fraction)
| access | public |
|---|---|
| category | Financial Functions |
floatDecimal Dollar
integerFraction
floatEFFECT(float $nominal_rate, integer $npery) : float
Returns the effective interest rate given the nominal rate and the number of compounding payments per year.
Excel Function: EFFECT(nominal_rate,npery)
| access | public |
|---|---|
| category | Financial Functions |
floatNominal interest rate
integerNumber of compounding payments per year
floatFV(float $rate, int $nper, float $pmt, float $pv, integer $type) : float
Returns the Future Value of a cash flow with constant payments and interest rate (annuities).
Excel Function: FV(rate,nper,pmt[,pv[,type]])
| access | public |
|---|---|
| category | Financial Functions |
floatThe interest rate per period
intTotal number of payment periods in an annuity
floatThe payment made each period: it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes.
floatPresent Value, or the lump-sum amount that a series of future payments is worth right now.
integerA number 0 or 1 and indicates when payments are due: 0 or omitted At the end of the period. 1 At the beginning of the period.
floatFVSCHEDULE(float $principal, float[] $schedule) : float
Returns the future value of an initial principal after applying a series of compound interest rates. Use FVSCHEDULE to calculate the future value of an investment with a variable or adjustable rate.
Excel Function: FVSCHEDULE(principal,schedule)
floatThe present value.
float[]An array of interest rates to apply.
floatINTRATE(mixed $settlement, mixed $maturity, integer $investment, integer $redemption, integer $basis) : float
Returns the interest rate for a fully invested security.
Excel Function: INTRATE(settlement,maturity,investment,redemption[,basis])
mixedThe security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedThe security's maturity date. The maturity date is the date when the security expires.
integerThe amount invested in the security.
integerThe amount to be received at maturity.
integerThe type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatIPMT(float $rate, int $per, int $nper, float $pv, float $fv, int $type) : float
Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
Excel Function: IPMT(rate,per,nper,pv[,fv][,type])
floatInterest rate per period
intPeriod for which we want to find the interest
intNumber of periods
floatPresent Value
floatFuture Value
intPayment type: 0 = at the end of each period, 1 = at the beginning of each period
floatIRR(float[] $values, float $guess) : float
Returns the internal rate of return for a series of cash flows represented by the numbers in values. These cash flows do not have to be even, as they would be for an annuity. However, the cash flows must occur at regular intervals, such as monthly or annually. The internal rate of return is the interest rate received for an investment consisting of payments (negative values) and income (positive values) that occur at regular periods.
Excel Function: IRR(values[,guess])
float[]An array or a reference to cells that contain numbers for which you want to calculate the internal rate of return. Values must contain at least one positive value and one negative value to calculate the internal rate of return.
floatA number that you guess is close to the result of IRR
floatISPMT()
Returns the interest payment for an investment based on an interest rate and a constant payment schedule.
Excel Function: =ISPMT(interest_rate, period, number_payments, PV)
interest_rate is the interest rate for the investment
period is the period to calculate the interest rate. It must be betweeen 1 and number_payments.
number_payments is the number of payments for the annuity
PV is the loan amount or present value of the payments
MIRR(float[] $values, float $finance_rate, float $reinvestment_rate) : float
Returns the modified internal rate of return for a series of periodic cash flows. MIRR considers both the cost of the investment and the interest received on reinvestment of cash.
Excel Function: MIRR(values,finance_rate, reinvestment_rate)
float[]An array or a reference to cells that contain a series of payments and income occurring at regular intervals. Payments are negative value, income is positive values.
floatThe interest rate you pay on the money used in the cash flows
floatThe interest rate you receive on the cash flows as you reinvest them
floatNOMINAL(float $effect_rate, int $npery) : float
Returns the nominal interest rate given the effective rate and the number of compounding payments per year.
floatEffective interest rate
intNumber of compounding payments per year
floatNPER(float $rate, int $pmt, float $pv, float $fv, int $type) : float
Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate.
floatInterest rate per period
intPeriodic payment (annuity)
floatPresent Value
floatFuture Value
intPayment type: 0 = at the end of each period, 1 = at the beginning of each period
floatNPV() : float
Returns the Net Present Value of a cash flow series given a discount rate.
floatPMT(float $rate, int $nper, float $pv, float $fv, int $type) : float
Returns the constant payment (annuity) for a cash flow with a constant interest rate.
floatInterest rate per period
intNumber of periods
floatPresent Value
floatFuture Value
intPayment type: 0 = at the end of each period, 1 = at the beginning of each period
floatPPMT(float $rate, int $per, int $nper, float $pv, float $fv, int $type) : float
Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
floatInterest rate per period
intPeriod for which we want to find the interest
intNumber of periods
floatPresent Value
floatFuture Value
intPayment type: 0 = at the end of each period, 1 = at the beginning of each period
floatPRICE($settlement, $maturity, $rate, $yield, $redemption, $frequency, $basis)
PRICEDISC(mixed $settlement, mixed $maturity, int $discount, int $redemption, int $basis) : float
Returns the price per $100 face value of a discounted security.
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
intdiscount The security's discount rate.
intredemption The security's redemption value per $100 face value.
intbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatPRICEMAT(mixed $settlement, mixed $maturity, mixed $issue, int $rate, int $yield, int $basis) : float
Returns the price per $100 face value of a security that pays interest at maturity.
mixedsettlement The security's settlement date. The security's settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
mixedissue The security's issue date.
intrate The security's interest rate at date of issue.
intyield The security's annual yield.
intbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatPV(float $rate, int $nper, float $pmt, float $fv, int $type) : float
Returns the Present Value of a cash flow with constant payments and interest rate (annuities).
floatInterest rate per period
intNumber of periods
floatPeriodic payment (annuity)
floatFuture Value
intPayment type: 0 = at the end of each period, 1 = at the beginning of each period
floatRATE(float $nper, float $pmt, float $pv, float $fv, integer $type, float $guess) : float
Returns the interest rate per period of an annuity. RATE is calculated by iteration and can have zero or more solutions. If the successive results of RATE do not converge to within 0.0000001 after 20 iterations, RATE returns the #NUM! error value.
Excel Function: RATE(nper,pmt,pv[,fv[,type[,guess]]])
| access | public |
|---|---|
| category | Financial Functions |
floatnper The total number of payment periods in an annuity.
floatpmt The payment made each period and cannot change over the life of the annuity. Typically, pmt includes principal and interest but no other fees or taxes.
floatpv The present value - the total amount that a series of future payments is worth now.
floatfv The future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0).
integertype A number 0 or 1 and indicates when payments are due: 0 or omitted At the end of the period. 1 At the beginning of the period.
floatguess Your guess for what the rate will be. If you omit guess, it is assumed to be 10 percent.
floatRECEIVED(mixed $settlement, mixed $maturity, int $investment, int $discount, int $basis) : float
Returns the price per $100 face value of a discounted security.
mixedsettlement The security's settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
intinvestment The amount invested in the security.
intdiscount The security's discount rate.
intbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatSLN(\cost $cost, \salvage $salvage, \life $life) : float
Returns the straight-line depreciation of an asset for one period
\costInitial cost of the asset
\salvageValue at the end of the depreciation
\lifeNumber of periods over which the asset is depreciated
floatSYD(\cost $cost, \salvage $salvage, \life $life, \period $period) : float
Returns the sum-of-years' digits depreciation of an asset for a specified period.
\costInitial cost of the asset
\salvageValue at the end of the depreciation
\lifeNumber of periods over which the asset is depreciated
\periodPeriod
floatTBILLEQ(mixed $settlement, mixed $maturity, int $discount) : float
Returns the bond-equivalent yield for a Treasury bill.
mixedsettlement The Treasury bill's settlement date. The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
mixedmaturity The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
intdiscount The Treasury bill's discount rate.
floatTBILLPRICE(mixed $settlement, mixed $maturity, int $discount) : float
Returns the yield for a Treasury bill.
mixedsettlement The Treasury bill's settlement date. The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
mixedmaturity The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
intdiscount The Treasury bill's discount rate.
floatTBILLYIELD(mixed $settlement, mixed $maturity, int $price) : float
Returns the yield for a Treasury bill.
mixedsettlement The Treasury bill's settlement date. The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
mixedmaturity The Treasury bill's maturity date. The maturity date is the date when the Treasury bill expires.
intprice The Treasury bill's price per $100 face value.
floatXIRR($values, $dates, $guess)
XNPV(float $rate, array $values, array $dates) : float
Returns the net present value for a schedule of cash flows that is not necessarily periodic. To calculate the net present value for a series of cash flows that is periodic, use the NPV function.
Excel Function: =XNPV(rate,values,dates)
floatThe discount rate to apply to the cash flows.
arrayof float $values A series of cash flows that corresponds to a schedule of payments in dates. The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. The series of values must contain at least one positive value and one negative value.
arrayof mixed $dates A schedule of payment dates that corresponds to the cash flow payments. The first payment date indicates the beginning of the schedule of payments. All other dates must be later than this date, but they may occur in any order.
floatYIELDDISC(mixed $settlement, mixed $maturity, int $price, int $redemption, int $basis) : float
Returns the annual yield of a security that pays interest at maturity.
mixedsettlement The security's settlement date. The security's settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
intprice The security's price per $100 face value.
intredemption The security's redemption value per $100 face value.
intbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
floatYIELDMAT(mixed $settlement, mixed $maturity, mixed $issue, int $rate, int $price, int $basis) : float
Returns the annual yield of a security that pays interest at maturity.
mixedsettlement The security's settlement date. The security's settlement date is the date after the issue date when the security is traded to the buyer.
mixedmaturity The security's maturity date. The maturity date is the date when the security expires.
mixedissue The security's issue date.
intrate The security's interest rate at date of issue.
intprice The security's price per $100 face value.
intbasis The type of day count to use. 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360
float_coupFirstPeriodDate($settlement, $maturity, $frequency, $next)
_daysPerYear(integer $year, integer $basis) : integer
Returns the number of days in a specified year, as defined by the "basis" value
integerThe year against which we're testing
integerThe type of day count: 0 or omitted US (NASD) 360 1 Actual (365 or 366 in a leap year) 2 360 3 365 4 European 360
integer_firstDayOfMonth(\DateTime $testDate) : boolean
Returns a boolean TRUE/FALSE indicating if this date is the first date of the month
boolean_interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type)
_lastDayOfMonth(\DateTime $testDate) : boolean
Returns a boolean TRUE/FALSE indicating if this date is the last date of the month
boolean_validFrequency($frequency)