Difference between revisions of "Manuals/calci/coupncd"

From ZCubes Wiki
Jump to navigation Jump to search
Line 18: Line 18:
 
  4 - European method, 12 months of 30 days each
 
  4 - European method, 12 months of 30 days each
 
*COUPNCD returns errors when  
 
*COUPNCD returns errors when  
  settlement or maturity is not a valid date.
+
  Settlement <math>(s)</math> or Maturity <math>(m)</math> is not a valid date.
  frequency is any number other than 1, 2, or 4.
+
  Frequency<math>(f)</math> is any number other than 1, 2, or 4.
  basis < 0 or if basis > 4.
+
  Basis<math>(b)</math> < 0 or if Basis<math>(b)</math> > 4.
  settlement maturity.
+
  Settlement<math>(s)</math> Maturity<math>(m)</math>.
  
 
==Examples==
 
==Examples==

Revision as of 00:23, 24 February 2014

COUPNCD(s,m,f,b)


  • is the security's settlement date.
  • is the security's maturity date(Expire date).
  •  is the number of coupon(interest) payments per year(1,2 or 4)
  • is the Type of day count basis.

Description

  • This function returns a date that represents next coupon date after the settlement date.
  • must be 1,2 or 4
  • COUPNCD shows there value  when  Failed to parse (unknown function "\lt"): {\displaystyle basis\lt 0} or Failed to parse (unknown function "\gt"): {\displaystyle basis\gt 0} Basis>4,
  • must be greater than or equal to maturity date.
  • is the calender system to use.
0 - US method (NASD), 12 months of 30 days each
1 - Actual number of days in months, actual number of days in year
2 - Actual number of days in month, year has 360 days
3 - Actual number of days in month, year has 365 days
4 - European method, 12 months of 30 days each
  • COUPNCD returns errors when
Settlement  or Maturity  is not a valid date.
Frequency is any number other than 1, 2, or 4.
Basis < 0 or if Basis > 4.
Settlement ≥ Maturity.

Examples

?UNIQ17b134979b170de4-nowiki-00000003-QINU?

where

B2=2/25/2007

B3=10/15/2008

B4=2

B5=1

COUPNCD returns (Sun APRIL 15, 2007).

References