| Financial Toolbox | Search  Help Desk |
| proddfl | Examples See Also |
Price with odd first and last periods and settlement in first period.
Syntax
[p, ai] = proddfl(sd, md, id, fd, lcd, rv, cpn, yld, per, basis) [p, ai] = proddfl(sd, md, id, fd, lcd, rv, cpn, yld, per) [p, ai] = proddfl(sd, md, id, fd, lcd, rv, cpn, yld)
Arguments
sdsd must be earlier than or equal to md.mdidfdlcdrvcpnyldper2.basis0 = actual/actual (default), 1 = 30/360,2 = actual/360, 3 = actual/365.Description
[p, ai] = proddfl(sd, md, id, fd, lcd, rv, cpn, yld, per, basis)
returns the price p and accrued interest ai of a security with odd first and last periods and the settlement date in the first period.
Example
Using this data:sd = '03/15/1993'; md = '03/01/2020'; id = '03/01/1993'; fd = '07/01/1993'; lcd = '01/01/2020'; rv = 100; cpn = 0.04; yld = 0.0427; per = 2; basis = 1; [p, ai] = proddfl(sd, md, id, fd, lcd, rv, cpn, yld, per, basis)returns
p =95.6939ai =0.1556
See Also
acrubond, cfdates, prbond, proddf, proddl, yldbond, yldoddfl
Reference
Mayle, Standard Securities Calculation Methods, Volumes I-II, 3rd edition. Formulas 16, 17, 18, 19.