Difference between revisions of "Documentation/How Tos/Calc: COUPDAYS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE: COUPDAYS function}} |
+ | {{Documentation/CalcFunc FinancialTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_COUPDAYBS_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_COUPDAYSNC_function | ||
+ | }}__NOTOC__ | ||
== COUPDAYS == | == COUPDAYS == | ||
Line 21: | Line 26: | ||
=== Example: === | === Example: === | ||
<tt>'''COUPDAYS("2007-01-25"; "2009-11-15"; 2; 4)'''</tt> | <tt>'''COUPDAYS("2007-01-25"; "2009-11-15"; 2; 4)'''</tt> | ||
− | : returns <tt>'''180'''</tt>. A bond is originally issued on 15 November 1999, with a ten year term; the date of maturity is 15 November 2009. You subsequently purchase it on the secondary market, with a settlement date of 25 January 2007; Interest is paid half-yearly (<tt>'''frequency'''</tt> is 2); thus interest is due on the 15 May and the 15 November each year, during the bond's term. Using basis 4, there are 180 days (= 6 * 30) in the interest period in which the settlement date falls (16 November 2006 to 15 May 2007 inclusive = 6 months). | + | : returns <tt>'''180'''</tt>. A bond is originally issued on 15 November 1999, with a ten-year term; the date of maturity is 15 November 2009. You subsequently purchase it on the secondary market, with a settlement date of 25 January 2007; Interest is paid half-yearly (<tt>'''frequency'''</tt> is 2); thus interest is due on the 15 May and the 15 November each year, during the bond's term. Using basis 4, there are 180 days (= 6 * 30) in the interest period in which the settlement date falls (16 November 2006 to 15 May 2007 inclusive = 6 months). |
=== Issues: === | === Issues: === | ||
− | * For any <tt>'''basis'''</tt> except 1, the length of the interest period is calculated from the length of a year. Thus <tt>'''COUPDAYS'''</tt> returns the same number of days (derived from the number of interest periods in a year), regardless of settlement date, unless <tt>'''basis'''</tt> = 1, when the exact number of days are returned. | + | * For any <tt>'''basis'''</tt> except 1, the length of the interest period is calculated from the length of a year. Thus, <tt>'''COUPDAYS'''</tt> returns the same number of days (derived from the number of interest periods in a year), regardless of settlement date, unless <tt>'''basis'''</tt> = 1, when the exact number of days are returned. |
* Both Calc and Excel can return a non-integer number of days (including a fraction) - for example <tt>'''COUPDAYS("2007-01-25"; "2009-11-15"; 2; 3)'''</tt> returns <tt>'''182.5'''</tt> (= 365/2). | * Both Calc and Excel can return a non-integer number of days (including a fraction) - for example <tt>'''COUPDAYS("2007-01-25"; "2009-11-15"; 2; 3)'''</tt> returns <tt>'''182.5'''</tt> (= 365/2). | ||
− | {{ | + | {{SeeAlso|EN| |
* [[Documentation/How_Tos/Calc: COUPDAYBS function|COUPDAYBS]] | * [[Documentation/How_Tos/Calc: COUPDAYBS function|COUPDAYBS]] | ||
* [[Documentation/How_Tos/Calc: COUPDAYSNC function|COUPDAYSNC]] | * [[Documentation/How_Tos/Calc: COUPDAYSNC function|COUPDAYSNC]] |
Latest revision as of 12:17, 31 January 2024
- Financial FunctionsDepreciation
- AMORDEGRCAMORLINCDBDDBSLNSYDVDBPayment Streams, Annuities, Loans
- CUMIPMTCUMIPMT_ADDCUMPRINCCUMPRINC ADDFVFVSCHEDULEIPMTIRRISPMTMIRRNPERNPVPMTPPMTPVRATERRIXIRRXNPVSecurities
-