Time factors corresponding to bond cash flow dates
[TFactors] = cftimes(Settle,Maturity)
[TFactors] = cftimes(Settle,Maturity,Period,Basis,EndMonthRule,IssueDate,FirstCouponDate,LastCouponDate,StartDate)
[TFactors] = cftimes(Settle,Maturity,'ParameterName',ParameterValue,
...)
[TFactors] = cftimes(Settle,Maturity)
determines
the time factors corresponding to the cash flows of a bond or set
of bonds.
cftimes
computes the time factor of a cash
flow, which is the difference between the settlement date and the
cash flow date, in units of semiannual coupon periods. In computing
time factors, use SIA actual/actual day count conventions for all
time factor calculations.
[TFactors] = cftimes(Settle,Maturity,Period,Basis,EndMonthRule,IssueDate,FirstCouponDate,LastCouponDate,StartDate)
determines the time factors corresponding to the cash flows of a bond
or set of bonds, including optional inputs.
[TFactors] = cftimes(Settle,Maturity,
accepts optional inputs as one or more
commaseparated parameter/value pairs. 'ParameterName',ParameterValue,
...)
'ParameterName'
is
the name of the parameter inside single quotes. ParameterValue
is
the value corresponding to 'ParameterName'
.
Specify parameter/value pairs in any order. Names are caseinsensitive.

Settlement date. A vector of serial date numbers, date character
vectors, or datetime array. 

Maturity date. A vector of serial date numbers, date character vectors, or datetime array. 
Enter the following inputs using an ordered syntax or as parameter/value pairs. You cannot mix ordered syntax with parameter/value pairs.

Coupons per year of the bond. A vector of integers. Values are Default: 

Daycount basis of the instrument. A vector of integers.
For more information, see basis. Default: 

Endofmonth rule. A vector. This rule applies only when Default: 

Issue date, specified as a serial date number, date character vector, or datetime array, for a bond. 

Date, specified as a serial date number, date character vector,
or datetime array, when a bond makes its first coupon payment. Default: If you do not specify a 

Last coupon date of a bond before the maturity date, specified
as a serial date number, date character vector, or datetime array. Default: If you do not specify a 

Date when a bond actually starts (the date from which a bond
cash flow is considered), specified as a serial date number, date
character vector, or datetime array. To make an instrument forwardstarting,
specify this date as a future date. If you do not specify 
Enter the following inputs only as parameter/value pairs.

Compounding frequency for yield calculation. By default, SIA bases (0–7) and BUS/252 use a semiannual compounding convention and ICMA bases (8–12) use an annual compounding convention. 

Basis used to compute the discount factors for computing the yield. The default behavior is for SIA bases to use the actual/actual day count to compute discount factors. If you use ICMA day counts and BUS/252, the specified bases are used. 


Krgin, Dragomir. Handbook of Global Fixed Income Calculations. John Wiley & Sons, 2002.
Mayle, Jan. "Standard Securities Calculations Methods: Fixed Income Securities Formulas for Analytic Measures." SIA, Vol 2, Jan 1994.
Stigum, Marcia, and Franklin Robinson. Money Market and Bond Calculations. McGrawHill, 1996.
accrfrac
 cfamounts
 cfdates
 cpncount
 cpndaten
 cpndatenq
 cpndatep
 cpndatepq
 cpndaysn
 cpndaysp
 date2time