Difference between revisions of "Documentation/How Tos/Calc: MDURATION function"
From Apache OpenOffice Wiki
< Documentation | How Tos
Javier Lopez (Talk | contribs) |
Javier Lopez (Talk | contribs) |
||
Line 3: | Line 3: | ||
|booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div> | |booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div> | ||
|ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Financial_functions|<div style="font-size: 140%;">Financial Functions]] | |ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Financial_functions|<div style="font-size: 140%;">Financial Functions]] | ||
− | |ShowNextPage=block|NextPage=Documentation/How_Tos/Calc: | + | |ShowNextPage=block|NextPage=Documentation/How_Tos/Calc:_NOMINAL_function |
|ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_INTRATE_function | |ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_INTRATE_function | ||
|ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Date_%26_Time_functions | |ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Date_%26_Time_functions | ||
Line 49: | Line 49: | ||
* [[Documentation/How_Tos/Calc:_INTRATE_function|<div style="font-size: 120%;">Intrate]] | * [[Documentation/How_Tos/Calc:_INTRATE_function|<div style="font-size: 120%;">Intrate]] | ||
* [[Documentation/How_Tos/Calc:_MDURATION_function|<div style="font-size: 120%; border-style: double; border-color:#778899;">Mduration]] | * [[Documentation/How_Tos/Calc:_MDURATION_function|<div style="font-size: 120%; border-style: double; border-color:#778899;">Mduration]] | ||
− | |||
* [[Documentation/How_Tos/Calc:_NOMINAL_function|<div style="font-size: 120%;">Nominal]] | * [[Documentation/How_Tos/Calc:_NOMINAL_function|<div style="font-size: 120%;">Nominal]] | ||
* [[Documentation/How_Tos/Calc:_NOMINAL_ADD_function|<div style="font-size: 120%;">Nominal Add]] | * [[Documentation/How_Tos/Calc:_NOMINAL_ADD_function|<div style="font-size: 120%;">Nominal Add]] |
Revision as of 02:51, 1 June 2013
CALC FUNCTIONS
- Financial FunctionsDepreciation
- AmordegrcAmorlincDbDdbSlnSydVdbPayment Streams, Annuities, Loans
- CumipmtCumipmt AddCumprincCumpinc AddFvFvscheduleIpmtIrrIspmtMirrNperNpvPmtPpmtPvRateRriXirrXnpvSecurities
- AccrintAccrintmDiscDurationDuration AddEffectiveEffect AddIntrateMdurationNominalNominal AddOddfpriceOddfyieldCoupons
- CoupdaybsCoupdaysCoupdaysncCoupncdCoupnum
Contents
MDURATION
Calculates the modified 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 calculates the modified duration as 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.
Issues:
- This function uses YEARFRAC in the calculation. There are known slight inaccuracies (both in Calc and in Excel) in YEARFRAC.
-