Difference between revisions of "Manuals/calci/ODDLPRICE"

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,yield, redem, F, ...")
 
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left"> 
+
<div style="font-size:23px">'''ODDLPRICE (SettlementDate,MaturityDate,LastInterestDate,Rate,Yield,Redemption,Frequency,Basis)
 +
'''</div><br/>
  
<font color="#000000"><font face="Arial, sans-serif">'''<font size="2">ODDLPRICE(settle, M, LI, R,yield, redem, F, basis)</font>'''</font></font>
+
*<math> SettlementDate </math> is the settlement date.
 +
*<math> MaturityDate </math> is the maturity date.
 +
*<math> LastInterestDate </math> is the last interest date.
 +
*<math> Rate </math> is the rate of interest.
 +
*<math> Yield </math> is the yield for annum.
 +
*<math> Redemption </math> is the security's redemption value.
 +
*<math> Frequency </math> is the frequency.
 +
*<math> Basis  </math> is the basis.
 +
**ODDLPRICE(), returns the price per $100 face value 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, 'yield' is the security's annual yield, '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 price of a security that pays interest periodically, but has an odd last coupon  period.
 +
*The peroid can be shorter or longer compared with the other periods.
 +
*This function is inverse of the ODDLYIELD.
 +
*In <math>ODDLPRICE (SettlementDate,MaturityDate,LastInterestDate,Rate,Yield,Redemption,Frequency,Basis)
 +
</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.
 +
*<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>Yield</math> is the security's yield for an annum which is a nonnegative number.
 +
*<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.
 +
{| 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
 +
|}
 +
*The date arguments must satisfy the following conditions:
 +
        SettlementDate < LastInterestDate < MaturityDate.
 +
*Also SettlementDate, MaturityDate, LastInterestDate,and Basis are truncated in to integers.
 +
*This function will give the result as error  when
 +
  1.The date arguments SettlementDate, MaturityDate and LastInterestDate are not a valid date.
 +
  2.Rate<0 or Yield<0.
 +
  3.Basis<0 or Basis>4.
  
</div>
+
==Examples==
----
+
{| class="wikitable"
<div id="1SpaceContent" class="zcontent" align="left"> 
+
|-
 
+
! !! A !! B
<font color="#000000"><font face="Arial, sans-serif"><font size="2">This function computes the price per $100 face value of a security having an odd last coupon period.</font></font></font>
+
|-
 
+
! 1
</div>
+
| 7/18/2006 || 10/12/2013
----
+
|-
<div id="7SpaceContent" class="zcontent" align="left"> 
+
! 2
 
+
| 9/8/2007 || 3/14/14
* <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' or 'Yield' &lt; 0.</font></font></font>
+
|-
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">Basis must between 0 and 4. </font></font></font>
+
!3
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">M &gt; settle &gt; LI</font></font></font>
+
| 4/20/2005 || 5/5/2012
 
+
|-
</div>
+
! 4
----
+
| 3.75% || 4.85%
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
+
|-
 
+
! 5
ODDLPRICE
+
| 5.25% || 6.45%
 +
|-
 +
! 6
 +
| 110 || 150
 +
|-
 +
! 7
 +
| 2 || 1
 +
|-
 +
! 8
 +
| 0 || 0
 +
|}
  
</div></div>
+
#=ODDLPRICE(A1,A2,A3,A4,A5,A6,A7,A8) = 107.560579
----
+
#=ODDLPRICE(A1,A2,A3,A4,A5,A6,4,2) = 107.5383470
<div id="8SpaceContent" class="zcontent" align="left"> 
+
#=ODDLPRICE(B1,B2,B3,B4,B5,B6,B7,B8) = 147.83213209
 +
#=ODDLPRICE(B1,B2,B3,B4,B5,B6,2,3) = 147.82713239
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">Lets see an example,</font></font></font>
+
==Related Videos==
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">ODDLPRICE(settle, M, LI, R,yield, redem, F, basis)</font></font></font>
+
{{#ev:youtube|v=JpQ1ywuWz1U|280|center|ODDLPRICE}}
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''B'''</font></font></font>
+
==See Also==
 +
*[[Manuals/calci/DATE  | DATE ]]
 +
*[[Manuals/calci/ODDFPRICE  | ODDFPRICE ]]
 +
*[[Manuals/calci/ODDFYIELD  | ODDFYIELD ]]
 +
*[[Manuals/calci/ODDLYIELD | ODDLYIELD ]]
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">01-08-2008</font></font></font>
+
==References==
 +
*[https://wiki.openoffice.org/wiki/Documentation/How_Tos/Calc:_ODDLPRICE_function Oddlprice]
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">05-18-2008</font></font></font>
 
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">11-15-2007</font></font></font>
 
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">4.35%</font></font></font>
+
*[[Z_API_Functions | List of Main Z Functions]]
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">5.25%</font></font></font>
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">$100</font></font></font>
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">2</font></font></font>
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">0</font></font></font>
 
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2"><nowiki>=ODDLPRICE(B2,B3,B4,B5,B6,B7,B8,B9) is 99.6691</nowiki></font></font></font>
 
 
 
</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"
 
|- class="even"
 
| class=" " |
 
| class="  " | Column1
 
| class="  " | Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class=" " | 01-08-2008
 
| class="sshl_f" | 99.6691
 
| class="SelectTD                                                                                    sshl_t ChangeBGColor" |
 
| class=" sshl_t" |
 
|- class="even"
 
| class="  " | Row2
 
| class=" " | 05-18-2008
 
| class="                                                                                                      sshl_f  " |
 
| class=" sshl_f" |
 
| class=" sshl_f" |
 
|- class="odd"
 
| Row3
 
| class=" " | 11-15-2007
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class=" " | 4.35%
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class=" " | 5.25%
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| class="sshl_f" | Row6
 
| class=" " | $100
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class="sshl_f" | Row7
 
| class=" " | 2
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="sshl_f" | Row8
 
| class="sshl_f " | 0
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class="sshl_f" | Row9
 
| class="                                                                                      sshl_f  " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| class="sshl_f" | Row10
 
| class="SelectTd                                                                                                                                                                                                                                                                                                    " |
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 14:52, 21 February 2019

ODDLPRICE (SettlementDate,MaturityDate,LastInterestDate,Rate,Yield,Redemption,Frequency,Basis)


  • is the settlement date.
  • is the maturity date.
  • is the last interest date.
  • is the rate of interest.
  • is the yield for annum.
  • is the security's redemption value.
  • is the frequency.
  • is the basis.
    • ODDLPRICE(), returns the price per $100 face value of a security with an odd last period.

Description

  • This function gives the price of a security that pays interest periodically, but has an odd last coupon period.
  • The peroid can be shorter or longer compared with the other periods.
  • This function is inverse of the ODDLYIELD.
  • 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 the security's yield for an annum which is a nonnegative number.
  • 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.
Basis Day count basis
0 or omitted American 30/360 (default)
1 actual/actual
2 actual/360
3 actual/365
4 European 30/360
  • The date arguments must satisfy the following conditions:
       SettlementDate < LastInterestDate < MaturityDate. 
  • Also SettlementDate, MaturityDate, LastInterestDate,and Basis are truncated in to integers.
  • This function will give the result as error when
  1.The date arguments SettlementDate, MaturityDate and LastInterestDate are not a valid date.
  2.Rate<0 or Yield<0.
  3.Basis<0 or Basis>4.

Examples

A B
1 7/18/2006 10/12/2013
2 9/8/2007 3/14/14
3 4/20/2005 5/5/2012
4 3.75% 4.85%
5 5.25% 6.45%
6 110 150
7 2 1
8 0 0
  1. =ODDLPRICE(A1,A2,A3,A4,A5,A6,A7,A8) = 107.560579
  2. =ODDLPRICE(A1,A2,A3,A4,A5,A6,4,2) = 107.5383470
  3. =ODDLPRICE(B1,B2,B3,B4,B5,B6,B7,B8) = 147.83213209
  4. =ODDLPRICE(B1,B2,B3,B4,B5,B6,2,3) = 147.82713239

Related Videos

ODDLPRICE

See Also

References