Difference between revisions of "Manuals/calci/ODDFPRICE"

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">ODDFPRICE(settle, M, I, FC, R, yield, redem, F, ...")
 
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left"> <font color="#000000"><font face="Arial, sans-serif">'''<font size="2">ODDFPRICE(settle, M, I, FC, R, yield, redem, F, basis)</font>'''</font></font>
+
<div style="font-size:23px">'''ODDFPRICE (SettlementDate,MaturityDate,IssueDate,FirstCouponDate,Rate,Yield,Redemption,Frequency,Basis)
 +
'''</div><br/>
  
<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, 'I' is the security's issue date, 'FC' is the security's first 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>
+
*<math> SettlementDate </math> is the settlement.
 +
*<math> MaturityDate </math> is the maturity.
 +
*<math> IssueDate </math> is the issue date.
 +
*<math> FirstCouponDate </math> is the first coupon date.
 +
*<math> Rate </math> is the rate of interest.
 +
*<math> Yield </math> is the security's yield.
 +
*<math> Redemption </math> is the security's redemption.
 +
*<math> Frequency </math> is the frequency.
 +
*<math> Basis  </math> is the basis.
 +
**ODDFPRICE(), returns the price per $100 face value of a security with an odd first period
  
</div>
+
==Description==
----
+
*This function gives the price of a security that pays interest periodically, but has an odd first period.
<div id="1SpaceContent" class="zcontent" align="left"> 
+
*This function is the inverse of the related OddFYield function.
 +
*In <math> ODDFPRICE (SettlementDate,MaturityDate,IssueDate,FirstCouponDate,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> IssueDate </math> is the date which is specifying when the security was issued.
 +
*<math> FirstCouponDate </math>  is the date which is specifying when the security has its first interest payment. This date must be after the settlement date but before the maturity date.
 +
*<math> Rate </math>  is a non-negative number specifying the interest rate for the coupons that the security pays.
 +
*<math> Yield </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.
 +
ODDFPRICE is calculated as:
 +
<math>\left [\frac{redemption}{\left (1+\frac{yld}{frequency}\right )^{\left (N-1+\frac{DSC}{E}\right )}}\right ] +
 +
\left [\dfrac{100*\frac{rate}{frequency}*\frac{DFC}{E}}{\left (1+\dfrac{yld}{frequency}\right )^{\left (\dfrac{DSC}{E}\right )}}\right ]
 +
+
 +
\left [\sum_{k=2}^N\dfrac{100*\frac{rate}{frequency}}{\left (1+\dfrac{yld}{frequency}\right )^{\left (k-1+\dfrac{DSC}{E}\right )}}\right ]
 +
-
 +
\left [100*\frac{rate}{frequency}*\frac{A}{E}\right ] </math>
 +
*The supported values are
 +
  1 -annual payments
 +
  2 -semiannual payments
 +
  4 -quarterly.
 +
*<math> Basis </math> is 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
 +
|}
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">This function calculates the price per $100 face value of a security having an odd first period.</font></font></font>
+
*<math> ODDFPRICE </math> is calculated as follows:
 +
<math>\left [\frac{redemption}{\left (1+\frac{yld}{frequency}\right )^{\left (N+N_3+\frac{DSC}{E}\right )}}\right ] +
 +
\left [\dfrac{100*\frac{rate}{frequency}* \sum_{i=1}^{NC}\dfrac{DC_i}{NL_i}}{\left (1+\dfrac{yld}{frequency}\right )^{\left (N_3+\frac{DSC}{E}\right )}}\right ]
 +
+
 +
\left [\sum_{k=1}^N\dfrac{100*\frac{rate}{frequency}}{\left (1+\dfrac{yld}{frequency}\right )^{\left (k-N_2+\dfrac{DSC}{E}\right )}}\right ]
 +
-
 +
\left [100*\frac{rate}{frequency}* \sum_{i=1}^{NC}\frac{A_i}{NL_i}\right ] </math>
  
</div>
+
*Odd short first coupon:
----
+
*<math> ODDFPRICE</math>=
<div id="7SpaceContent" class="zcontent" align="left"> 
+
*<math> A </math> = number of days from the beginning of the coupon period to the settlement date (accrued days).
 +
*<math> DSC </math> = number of days from the settlement to the next coupon date.
 +
*<math> DFC </math> = number of days from the beginning of the odd first coupon to the first coupon date.
 +
*<math> E </math> = number of days in the coupon period.
 +
*<math> N </math> = number of coupons payable between the settlement date and the redemption date. (If this number contains a fraction, it is raised to the next whole number.)
 +
*Odd long first coupon:
 +
*<math>ODDFPRICE</math>=
 +
*<math>A_i</math> = number of days from the beginning of the ith, or last, quasi-coupon period within odd period.
 +
*<math>DC_i</math> = number of days from dated date (or issue date) to first quasi-coupon (i = 1) or number of days in quasi-coupon (i = 2,..., i = NC).
 +
*<math> DSC </math> = number of days from settlement to next coupon date.
 +
*<math> E </math> = number of days in coupon period.
 +
*<math> N </math> = number of coupons payable between the first real coupon date and redemption date. (If this number contains a fraction, it is raised to the next whole number.)
 +
*<math> NC </math> = number of quasi-coupon periods that fit in odd period. (If this number contains a fraction, it is raised to the next whole number.)
 +
*<math>NL_i</math> = normal length in days of the full ith, or last, quasi-coupon period within odd period.
 +
*<math>Nq</math> = number of whole quasi-coupon periods between settlement date and first coupon.
 +
*The date arguments must satisfy the following conditions:
 +
      IssueDate<SettlementDate <FirstCouponDate < MaturityDate.
 +
*Also <math>SettlementDate</math>, <math>MaturityDate</math>,<math>IssueDate</math>,<math>FirstCouponDate</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 FirstCouponDate are not a valid date.
 +
    2.Rate<0 or Yield<0
 +
    3.Basis<0 or Basis>4
  
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">ODDFPRICE shows the error value, when 'settle', 'M', 'I', or 'FC' is not a valid date or 'R' or 'Yield' &lt; 0.</font></font></font>
+
==Examples==
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">Basis must be between 0 and 4. </font></font></font>
 
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">M &gt;FC &gt; settle &gt; I</font></font></font>
 
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">ODDFPRICE is calculated as follows: </font></font></font>
 
  
<br /><br />
+
{| class="wikitable"
 
+
|+Spreadsheet
<br /><br />
+
|-
 
+
! !! A !! B
</div>
+
|-
----
+
! 1
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
+
| 5/1/2001 || 4/30/1999
 
+
|-
ODDFPRICE
+
! 2
 
+
| 3/29/2030 || 1/5/2015
</div></div>
+
|-
----
+
! 3
<div id="8SpaceContent" class="zcontent" align="left"><font color="#000000"><font face="Arial, sans-serif"><font size="2">'''Lets see an example,'''</font></font></font>
+
| 4/10/2001  || 3/10/1999 
 
+
|-
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''ODDFPRICE(settle, M, I, FC, R, yield, redem, F, basis)'''</font></font></font>
+
! 4
 
+
| 8/16/2005 ||2/1/2000 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''B'''</font></font></font>
+
|-
 
+
! 5
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''10-15- 2010'''</font></font></font>
+
| 8.1% || 9.35%
 
+
|-
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''01-10-2023'''</font></font></font>
+
! 6
 +
| 6.9% || 8.76%
 +
|-
 +
! 7
 +
| 150 ||75
 +
|-
 +
! 8
 +
| 1 || 1
 +
|-
 +
! 9
 +
| 0 || 0
 +
|}
 +
#=ODDFPRICE(A1,A2,A3,A4,A5,A6,A7,A8,A9) = 118.7679606261
 +
#=ODDFPRICE(B1,B2,B3,B4,B5,B6,B7,B8,B9)= 98.2709210000
 +
#=ODDFPRICE(B1,B2,B3,B4,B5,B6,B7,2,2) =98.3610959065
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''09-15-2010'''</font></font></font>
+
==Related Videos==
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''01-10-2011'''</font></font></font>
+
{{#ev:youtube|v=vh7wCl-LAyc|280|center|ODDFPRICE}}
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''8.35%'''</font></font></font>
+
==See Also==
 +
*[[Manuals/calci/ODDFYIELD  | ODDFYIELD ]]
 +
*[[Manuals/calci/ODDLPRICE  | ODDLPRICE ]]
 +
*[[Manuals/calci/ODDLYIELD  | ODDLYIELD ]]
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''5.25%'''</font></font></font>
+
==References==
 +
*[https://wiki.openoffice.org/wiki/Documentation/How_Tos/Calc:_ODDFPRICE_function Oddfprice]
  
<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">'''1'''</font></font></font>
+
*[[Z_API_Functions | List of Main Z Functions]]
 
 
<font color="#000000"><font face="Arial, sans-serif"><font size="2">'''<nowiki>=ODDFPRICE(B2,B3,B4,B5,B6,B7,B8,B9,B10) is 127.7338</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="5SpaceContent" class="zcontent" align="left">
 
 
 
{| id="TABLE1" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| class="  " | Column1
 
| class="      " | Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | 10-15- 2010
 
| class="sshl_f" | 127.7338
 
| class="                                                                      " |
 
| class="                        sshl_f  " |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 01-10-2023
 
| class="                                                                                sshl_f  " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| Row3
 
| class="sshl_f" | 09-15-2010
 
| class="          " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| Row4
 
| class="sshl_f" | 01-10-2011
 
| class=" " |
 
| class="  " |
 
<div id="5Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="5Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class=" " |
 
|- class="odd"
 
| class=" " | Row5
 
| class="sshl_f" | 8.35%
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| class="sshl_f" | Row6
 
| class="sshl_f" | 5.25%
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class="sshl_f" | Row7
 
| class="sshl_f" | 100
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="even"
 
| class="sshl_f" | Row8
 
| class="sshl_f" | 2
 
| class=" " |
 
| class=" " |
 
| class=" " |
 
|- class="odd"
 
| class="sshl_f" | Row9
 
| class="sshl_f" | 1
 
| class="                                              " |
 
| class=" " |
 
| class="    SelectTD  SelectTD" |
 
<div id="5Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="5Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 14:53, 16 November 2018

ODDFPRICE (SettlementDate,MaturityDate,IssueDate,FirstCouponDate,Rate,Yield,Redemption,Frequency,Basis)


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

Description

  • This function gives the price of a security that pays interest periodically, but has an odd first period.
  • This function is the inverse of the related OddFYield 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 was issued.
  • is the date which is specifying when the security has its first interest payment. This date must be after the settlement date but before the maturity date.
  • 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.

ODDFPRICE is calculated as:

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

  • Odd short first coupon:
  • =
  • = number of days from the beginning of the coupon period to the settlement date (accrued days).
  • = number of days from the settlement to the next coupon date.
  • = number of days from the beginning of the odd first coupon to the first coupon date.
  • = number of days in the coupon period.
  • = number of coupons payable between the settlement date and the redemption date. (If this number contains a fraction, it is raised to the next whole number.)
  • Odd long first coupon:
  • =
  • = number of days from the beginning of the ith, or last, quasi-coupon period within odd period.
  • = number of days from dated date (or issue date) to first quasi-coupon (i = 1) or number of days in quasi-coupon (i = 2,..., i = NC).
  • = number of days from settlement to next coupon date.
  • = number of days in coupon period.
  • = number of coupons payable between the first real coupon date and redemption date. (If this number contains a fraction, it is raised to the next whole number.)
  • = number of quasi-coupon periods that fit in odd period. (If this number contains a fraction, it is raised to the next whole number.)
  • = normal length in days of the full ith, or last, quasi-coupon period within odd period.
  • = number of whole quasi-coupon periods between settlement date and first coupon.
  • The date arguments must satisfy the following conditions:
     IssueDate<SettlementDate <FirstCouponDate < MaturityDate. 
  • Also , ,, and are truncated in to integers.
  • This function gives the result as error when
    1.The date arguments SettlementDate,MaturityDate and FirstCouponDate are not a valid date.
    2.Rate<0 or Yield<0
    3.Basis<0 or Basis>4

Examples

Spreadsheet
A B
1 5/1/2001 4/30/1999
2 3/29/2030 1/5/2015
3 4/10/2001 3/10/1999
4 8/16/2005 2/1/2000
5 8.1% 9.35%
6 6.9% 8.76%
7 150 75
8 1 1
9 0 0
  1. =ODDFPRICE(A1,A2,A3,A4,A5,A6,A7,A8,A9) = 118.7679606261
  2. =ODDFPRICE(B1,B2,B3,B4,B5,B6,B7,B8,B9)= 98.2709210000
  3. =ODDFPRICE(B1,B2,B3,B4,B5,B6,B7,2,2) =98.3610959065

Related Videos

ODDFPRICE

See Also

References