Difference between revisions of "Documentation/How Tos/Calc: DISC function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 28: | Line 28: | ||
: returns approximately <tt>'''0.072'''</tt>, a discount rate of around 7.2%. | : returns approximately <tt>'''0.072'''</tt>, a discount rate of around 7.2%. | ||
− | + | {{Documentation/SeeAlso| | |
− | [[Documentation/How_Tos/Calc: PRICE function| | + | * [[Documentation/How_Tos/Calc: PRICE function|PRICE]], |
− | [[Documentation/How_Tos/Calc: PRICEDISC function| | + | * [[Documentation/How_Tos/Calc: PRICEDISC function|PRICEDISC]], |
− | [[Documentation/How_Tos/Calc: PRICEMAT function| | + | * [[Documentation/How_Tos/Calc: PRICEMAT function|PRICEMAT]], |
− | [[Documentation/How_Tos/Calc: YIELD function| | + | * [[Documentation/How_Tos/Calc: YIELD function|YIELD]], |
− | [[Documentation/How_Tos/Calc: YIELDDISC function| | + | * [[Documentation/How_Tos/Calc: YIELDDISC function|YIELDDISC]], |
− | [[Documentation/How_Tos/Calc: YIELDMAT function| | + | * [[Documentation/How_Tos/Calc: YIELDMAT function|YIELDMAT]] |
− | [[Documentation/How_Tos/Calc: YEARFRAC function| | + | * [[Documentation/How_Tos/Calc: YEARFRAC function|YEARFRAC]] |
− | [[Documentation/How_Tos/Calc: Date & Time functions#Financial date systems| | + | * [[Documentation/How_Tos/Calc: Date & Time functions#Financial date systems|Financial date systems]] |
− | [[Documentation/How_Tos/Calc: Financial functions| | + | * [[Documentation/How_Tos/Calc: Financial functions|Financial functions]] |
− | [[Documentation/How_Tos/Calc: Functions listed alphabetically| | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] |
− | [[Documentation/How_Tos/Calc: Functions listed by category| | + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
=== Issues: === | === Issues: === | ||
* Calc follows Excel's apparent use of <tt>'''YEARFRAC'''</tt> in calculating <tt>'''DISC'''</tt>. Both Excel and Calc calculate <tt>'''YEARFRAC'''</tt> incorrectly in certain circumstances, and these (small) errors are propagated to <tt>'''DISC'''</tt>. | * Calc follows Excel's apparent use of <tt>'''YEARFRAC'''</tt> in calculating <tt>'''DISC'''</tt>. Both Excel and Calc calculate <tt>'''YEARFRAC'''</tt> incorrectly in certain circumstances, and these (small) errors are propagated to <tt>'''DISC'''</tt>. |
Revision as of 13:43, 25 February 2009
DISC
Returns the discount rate of a security.
This function is only available if the Analysis AddIn is installed.
Syntax:
DISC(settlementdate; maturitydate; price; redemptionvalue; basis)
- settlementdate: the settlement (purchase) date of the security.
- maturitydate: the maturity (redemption) date of the security.
- price: the price of the security.
- redemptionvalue: the redemption value of the security.
- 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"; 98.9; 100; 1)
- returns approximately 0.072, a discount rate of around 7.2%.
Template:Documentation/SeeAlso
Issues:
- Calc follows Excel's apparent use of YEARFRAC in calculating DISC. Both Excel and Calc calculate YEARFRAC incorrectly in certain circumstances, and these (small) errors are propagated to DISC.