Difference between revisions of "Manuals/calci/ODDLYIELD"
Jump to navigation
Jump to search
Line 42: | Line 42: | ||
*<math> ODDLYIELD </math> is calculated as follows: | *<math> ODDLYIELD </math> is calculated as follows: | ||
− | *<math> ODDLYIELD </math> | + | *<math> ODDLYIELD = \left [redemption+\sum_{i=1}^NC\frac{DC_i}{NL_i}*\frac{100*rate}{frequency})\left(Par+\sum_{i=1}^NC\frac{A_i}{NL_i}*\frac{100*rate}{frequency})\right)\right</math> |
*<math> A_i </math> = number of accrued days for the ith, or last, quasi-coupon period within odd period counting forward from last interest date before redemption. | *<math> A_i </math> = number of accrued days for the ith, or last, quasi-coupon period within odd period counting forward from last interest date before redemption. | ||
*<math> DC_i</math> = number of days counted in the ith, or last, quasi-coupon period as delimited by the length of the actual coupon period. | *<math> DC_i</math> = number of days counted in the ith, or last, quasi-coupon period as delimited by the length of the actual coupon period. | ||
Line 54: | Line 54: | ||
2.r<0 or pr<=0 | 2.r<0 or pr<=0 | ||
3.b<0 or b>4 | 3.b<0 or b>4 | ||
− | |||
==Examples== | ==Examples== |
Revision as of 23:01, 3 March 2014
ODDLYIELD(s,m,lt,r,pr,rdm,f,b)
- is the settlement.
- is the maturity.
- is the last coupon date.
- is the rate of interest.
- is the security's price.
- is the security's redemption.
- is the frequency.
- is the basis.
Description
- This function gives the yield of a security that pays interest periodically but has an odd last period.
- This function is the inverse function of the OddLPrice function.
- In , is the security's settlementDate. It is a Date or DateTime specifying when the security was purchased.
- is the security's maturity date. This date is after the settlement date specifying when the security matures.
- is the date which is specifying when the security has its last payment. This date must be before the settlementDate.
- is a non-negative number specifying the interest rate for the coupons that the security pays.
- is a non-negative number or currency specifying the security’s purchase price per $100 of face value.
- is a number or currency specifying the security’s value at redemption per $100 of face value.
- is is a number specifying the number of coupons per year.
- The supported values are
1 -annual payments 2 -semiannual payments 4 -quarterly.
- is is an optional number specifying the day basis system to use.
- The following types are supported
Basis | Day count basis |
---|---|
0 or omitted | American 30/360 (default) |
1 | actual/actual |
2 | actual/360 |
3 | actual/365 |
4 | European 30/360 |
- is calculated as follows:
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle ODDLYIELD = \left [redemption+\sum_{i=1}^NC\frac{DC_i}{NL_i}*\frac{100*rate}{frequency})\left(Par+\sum_{i=1}^NC\frac{A_i}{NL_i}*\frac{100*rate}{frequency})\right)\right}
- = number of accrued days for the ith, or last, quasi-coupon period within odd period counting forward from last interest date before redemption.
- = number of days counted in the ith, or last, quasi-coupon period as delimited by the length of the actual coupon period.
- = number of quasi-coupon periods that fit in odd period; if this number contains a fraction it will be raised to the next whole number.
- = normal length in days of the ith, or last, quasi-coupon period within odd coupon period.
- The date arguments must satisfy the following conditions:
s(settlement) <lt(last interest) < m(maturity).
- Also , , ,and are truncated in to integers.
- This function gives the result as error when
1.The date arguments s,m and lt are not a valid date. 2.r<0 or pr<=0 3.b<0 or b>4
Examples
- =ODDLYIELD(10-May-1998,28-Sep-1998,5-Mar-1998,4.05%,125,50,4,0)= -1.523902561320
- ODDLYIELD(10-May-1998,28-Sep-1998,5-Mar-1998,4.05%,125,50,1,1) = -1.5119336294351
- =ODDLYIELD(10-May-1998,28-Sep-1998,5-Mar-1998,4.05%,125,50,2,2)= -1.49066037101320
- =ODDLYIELD(10-May-1998,28-Sep-1998,5-Mar-1998,4.05%,125,50,2,3)= -1.5119336294351
- =ODDLYIELD(10-May-1998,28-Sep-1998,5-Mar-1998,4.05%,125,50,2,4) = -1.5239025613