Documentation/How Tos/Calc: DISC function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 17:21, 16 August 2008 by Drking (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


DISC

Returns the discount rate of a bond.

Syntax:

DISC(settlementdate; maturitydate; price; redemptionvalue; basis)

settlementdate: the settlement (purchase) date of the bond.
maturitydate: the maturity (redemption) date of the bond.
price: the price of the bond.
redemptionvalue: the redemption value of the bond.
basis: is the calendar system to use. Defaults to 0 if omitted.
0 - US method (NASD), 12 months of 30 days each
1 - Actual number of days in months, actual number of days in year
2 - Actual number of days in month, year has 360 days
3 - Actual number of days in month, year has 365 days
4 - European method, 12 months of 30 days each


DISC calculates the discount rate using this formula:
(redemptionvalue - price) / (redemptionvalue * YEARFRAC(settlementdate; maturitydate; basis))

Example:

DISC("2007-12-21"; "2008-02-15"; 1200; 1500; 1)

returns approximately 0.072, a discount rate of around 7.2%.

See also:

YIELDDISC, YIELD, PRICE, PRICEDISC, PRICEMAT

Financial date systems

Financial functions

Issues:

  • Calc follows Excel's apparent use of YEARFRAC in calculating DISC. Both Excel and Calc calculate YEARFRAC incorrectly in certain circumstances, and these errors are propagated to DISC.
Personal tools