Difference between revisions of "Documentation/How Tos/Calc: MDURATION function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 24: | Line 24: | ||
:: Macaulay_duration / (1 + <tt>'''yield'''</tt>/<tt>'''frequency'''</tt>) | :: Macaulay_duration / (1 + <tt>'''yield'''</tt>/<tt>'''frequency'''</tt>) | ||
− | : The Macaulay duration is returned by the [[Documentation/How_Tos/Calc: DURATION_ADD function|<tt>'''DURATION_ADD'''</tt>]] function. See that description for further details. | + | : The Macaulay duration is returned by the * [[Documentation/How_Tos/Calc: DURATION_ADD function|<tt>'''DURATION_ADD'''</tt>]] function. See that description for further details. |
=== Example: === | === Example: === | ||
Line 30: | Line 30: | ||
: returns approximately <tt>'''2.33'''</tt> years. | : returns approximately <tt>'''2.33'''</tt> years. | ||
− | + | {{Documentation/SeeAlso| | |
− | [[Documentation/How_Tos/Calc: DURATION function| | + | * [[Documentation/How_Tos/Calc: DURATION function|DURATION]], |
− | [[Documentation/How_Tos/Calc: DURATION_ADD function| | + | * [[Documentation/How_Tos/Calc: DURATION_ADD function|DURATION_ADD]] |
− | [[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: === | ||
* This function uses <tt>'''YEARFRAC'''</tt> in the calculation. There are known slight inaccuracies (both in Calc and in Excel) in <tt>'''YEARFRAC'''</tt>. | * This function uses <tt>'''YEARFRAC'''</tt> in the calculation. There are known slight inaccuracies (both in Calc and in Excel) in <tt>'''YEARFRAC'''</tt>. |
Revision as of 14:03, 25 February 2009
MDURATION
Returns the modified Macaulay duration of a security.
This function is only available if the Analysis AddIn is installed.
Syntax:
MDURATION(settlementdate; maturitydate; rate; yield; frequency; basis)
- settlementdate: the settlement (purchase) date of the bond.
- maturitydate: the maturity (redemption) date of the bond.
- rate: the (annual) interest rate of the bond.
- yield: the (annual) yield of the bond.
- frequency: the number of interest payments per year (1, 2 or 4).
- 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
- This function returns the modifed Macaulay duration of a security, which is a measure of price volatility and interest rate sensitivity. It returns:
- Macaulay_duration / (1 + yield/frequency)
- The Macaulay duration is returned by the * DURATION_ADD function. See that description for further details.
Example:
MDURATION("2008-2-28"; "2010-8-31"; 5%; 6%; 2; 0)
- returns approximately 2.33 years.
Template:Documentation/SeeAlso
Issues:
- This function uses YEARFRAC in the calculation. There are known slight inaccuracies (both in Calc and in Excel) in YEARFRAC.