Finance[DayCount] - calculate the day count according to a given convention
|
Calling Sequence
|
|
DayCount(todate, daycounter)
DayCount(fromdate, todate, daycounter)
|
|
Parameters
|
|
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
|
|
|
|
|
Description
|
|
•
|
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.
|
|
|
Compatibility
|
|
•
|
The Finance[DayCount] command was introduced in Maple 15.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?