Finance
DayCount
calculate the day count according to a given convention
Calling Sequence
Parameters
Description
Examples
Compatibility
DayCount(todate, daycounter)
DayCount(fromdate, todate, daycounter)
fromdate
-
a string containing a date specification in a format recognized by ParseDate or a Date data structure; first date
todate
a string containing a date specification in a format recognized by ParseDate or a Date data structure; second date
daycounter
(optional) day counter or the name of a day counting convention
The DayCount command returns the number of days between fromdate and todate according to the day counting convention specified by daycounter. If no day counter is specified, the default one will be used.
See DayCounter or CalendarsAndDayCounters for a detailed description of the supported day count conventions and additional examples.
with⁡Finance:
DayCount⁡Dec-20-2005,Nov-05-2006
320
DayCount⁡Dec-20-2005,Nov-05-2006,ISMA
DayCount⁡Dec-20-2005,Nov-05-2006,Simple
315
DayCount⁡Dec-20-2005,Nov-05-2006,OneDay
1
DC≔Finance:-DayCounter⁡OneDay:
DayCount⁡Dec-20-2005,Nov-05-2006,DC
The Finance[DayCount] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Finance[DayCounter]
Finance[FormatDate]
Finance[ParseDate]
Finance[YearFraction]
Download Help Document