Difference between revisions of "Manuals/calci/ODDLYIELD"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left">  <font color="#000000"><font face="Arial, sans-serif">'''<font size="2">ODDLPRICE(settle, M, LI, R,pr, redem, F, bas...")
 
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left"> 
+
<div style="font-size:23px">'''ODDLYIELD (SettlementDate,MaturityDate,LastInterestDate,Rate,Price,Redemption,Frequency,Basis)
 +
'''</div><br/>
  
<font color="#000000"><font face="Arial, sans-serif">'''<font size="2">ODDLPRICE(settle, M, LI, R,pr, redem, F, basis)</font>'''</font></font>
+
*<math> SettlementDate </math> is the settlement.
 +
*<math> MaturityDate </math> is the maturity.
 +
*<math> LastInterestDate </math> is the last coupon date.
 +
*<math> Rate </math> is the rate of interest.
 +
*<math> Price </math> is the security's price.
 +
*<math> Redemption </math> is the security's redemption.
 +
*<math> Frequency </math> is the frequency.
 +
*<math> Basis </math> is the basis.
 +
**ODDLYIELD(), returns the yield of a security with an odd last period.
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''Where 'settle''''</font><font size="2"> is the security's settlement date, 'M is the security's maturity date, 'LI' is the security's last coupon date, 'R' is the security's interest rate, 'pr' is the security's price, 'redem' is the security's redemption value, 'F' is the number of coupon payments per year, and 'basis' is the type of day count basis to use.</font></font></font>
+
==Description==
 
+
*This function gives  the yield of a security that pays interest periodically but has an odd last period.
</div>
+
*This function is the inverse function of the  OddLPrice function.
----
+
*In <math>ODDLYIELD (SettlementDate,MaturityDate,LastInterestDate,Rate,Price,Redemption,Frequency,Basis)
<div id="1SpaceContent" class="zcontent" align="left"> 
+
</math>, <math> SettlementDate </math> is the security's settlementDate. It  is a Date or DateTime specifying when the security was purchased.
 
+
*<math> MaturityDate </math> is the security's maturity date. This date is  after the settlement date specifying when the security matures.
<font color="#000000"><font face="Arial, sans-serif"><font size="2">This function returns the yield of asecurity that has an odd last period.</font></font></font>
+
*<math> LastInterestDate </math> is the date which is specifying when the security has its last payment. This date must be before the settlementDate.
 +
*<math> Rate </math>  is a non-negative number specifying the interest rate for the coupons that the security pays.
 +
*<math> Price </math>  is a non-negative number or currency specifying the security’s purchase price per $100 of face value.
 +
*<math> Redemption </math> is a number or currency specifying the security’s value at redemption per $100 of face value.
 +
*<math> Frequency </math>is  is a number specifying the number of coupons per year.
 +
*The supported values are
 +
  1 -annual payments
 +
  2 -semiannual payments
 +
  4 -quarterly.
 +
*<math> Basis </math> is  an optional number specifying the day basis system to use.
 +
*The following types are supported
 +
{| class="wikitable"
 +
|-
 +
! Basis
 +
! Day count basis
 +
|-
 +
| 0 or omitted || American 30/360 (default)
 +
|-
 +
| 1 || actual/actual
 +
|-
 +
| 2 || actual/360
 +
|-
 +
| 3 || actual/365
 +
|-
 +
| 4 || European 30/360
 +
|}
 +
 
 +
*<math> ODDLYIELD </math> is calculated as follows:
  
</div>
+
<math> \left [\dfrac{\left (redemption + \left (\left(\sum_{i=1}^{NC}\frac{DC_i}{NL_i}\right )*\frac{100*rate}{frequency}\right )\right )-\left (par + \left ( \left (\sum_{i=1}^{NC}\frac{A_i}{NL_i}\right )*\frac{100*rate}{frequency}\right )\right )} {par + \left ( \left (\sum_{i=1}^{NC}\frac{A_i}{NL_i}\right )*\frac{100*rate}{frequency}\right )}\right ]
----
+
*
<div id="7SpaceContent" class="zcontent" align="left"> 
+
\left [\frac{frequency}{\left(\sum_{i=1}^{NC}\frac{DSC_i}{NL_i}\right )}\right ]</math>
  
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">ODDLPRICE shows the error value, when 'settle', 'M', 'I', or 'FC' is not a valid date or 'R &lt;0' or 'pr&lt;=0'.</font></font></font>
+
*<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.
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">Basis must between 0 and 4. </font></font></font>
+
*<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.
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">M &gt; settle &gt; LI</font></font></font>
+
*<math> NC</math> = 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.
 +
*<math>NL_i</math> = normal length in days of the ith, or last, quasi-coupon period within odd coupon period.
 +
*The date arguments must satisfy the following conditions:
 +
        SettlementDate <LastInterestDate < MaturityDate.
 +
*Also <math> SettlementDate </math>, <math>MaturityDate </math>, <math>LastInterestDate</math>,and <math> Basis </math> are truncated in to integers.
 +
*This function gives the result as error when
 +
  1.The date arguments SettlementDate, MaturityDate and LastInterestDate are not a valid date.
 +
  2.Rate<0 or Price<=0
 +
  3.Basis<0 or Basis>4
  
</div>
+
==Examples==
----
+
#=ODDLYIELD("10/May/1998","28/Sep/1998","5/Mar/1998",4.05%,125,50,4,0)= -1.523902561320
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
+
#=ODDLYIELD("10/May/1998","28/Sep/1998","5/Mar/1998",4.05%,125,50,1,1) = -1.5119336294351
 +
#=ODDLYIELD("5/10/1998","9/28/1998","3/5/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
  
ODDLYIELD
+
==Related Videos==
  
</div></div>
+
{{#ev:youtube|v=0LCEFrmItC0|280|center|ODDLYIELD}}
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Consider an example in(Column2, Row3)
+
==See Also==
 +
*[[Manuals/calci/DATE  | DATE ]]
 +
*[[Manuals/calci/ODDFPRICE  | ODDFPRICE ]]
 +
*[[Manuals/calci/ODDFYIELD  | ODDFYIELD ]]
 +
*[[Manuals/calci/ODDLPRICE | ODDLPRICE ]]
  
<nowiki>=ODDLYIELD(R1C1, R2C1, R3C1, R4C1, R5C1, R6C1, R1C2,R2C2)</nowiki>
+
==References==
 +
*[https://wiki.openoffice.org/wiki/Documentation/How_Tos/Calc:_ODDLYIELD_function Oddlyield]
  
The function returns 0.354477.
 
  
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
*[[Z_API_Functions | List of Main Z Functions]]
|- class="even"
 
| class=" " |
 
| Column1
 
| class="  " | Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 1/1/2008
 
| class=" " | 2
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| class="  " | Row2
 
| class=" " | 5/1/2008
 
| class="sshl_f " | 0
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| Row3
 
| class=" " | 11/15/2007
 
| class="sshl_f" | 0.354477
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class=" " | 3.75%
 
| class="  SelectTD ChangeBGColor SelectTD" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " | 90.5
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row6
 
| class=" " | 100
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 14:52, 21 February 2019

ODDLYIELD (SettlementDate,MaturityDate,LastInterestDate,Rate,Price,Redemption,Frequency,Basis)


  • 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.
    • ODDLYIELD(), returns the yield of a security with an odd last period.

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 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:

  • = 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:
       SettlementDate <LastInterestDate < MaturityDate. 
  • Also , , ,and are truncated in to integers.
  • This function gives the result as error when
  1.The date arguments SettlementDate, MaturityDate and LastInterestDate are not a valid date.
  2.Rate<0 or Price<=0
  3.Basis<0 or Basis>4

Examples

  1. =ODDLYIELD("10/May/1998","28/Sep/1998","5/Mar/1998",4.05%,125,50,4,0)= -1.523902561320
  2. =ODDLYIELD("10/May/1998","28/Sep/1998","5/Mar/1998",4.05%,125,50,1,1) = -1.5119336294351
  3. =ODDLYIELD("5/10/1998","9/28/1998","3/5/1998",4.05%,125,50,2,2)= -1.49066037101320
  4. =ODDLYIELD("10/May/1998","28/Sep/1998","5/Mar/1998",4.05%,125,50,2,3)= -1.5119336294351
  5. =ODDLYIELD("10/May/1998","28/Sep/1998","5/Mar/1998",4.05%,125,50,2,4) = -1.5239025613

Related Videos

ODDLYIELD

See Also

References