Description Usage Arguments Value Examples
Counts the number of days between date1
and date2
via the provided day
count convention. For the 30/360 day count convention, it is assumed that there are
30 days in a month. If the bond is EOM, which is available only for the 30/360 day count
convention, in a regular year the 3 days between February 28 and March 1 is assigned
to February, otherwise to March. In a leap year, only 2 days is assigned to February
for EOM. If the eom
parameter is set to TRUE
, then two additional rules
will apply to EOM February dates to achieve the aforementioned behavior.
1 |
date1 |
starting date to begin counting |
date2 |
ending date to stop counting |
conv |
the day count convention can be either "30/360" (default), "Act/365", or "Act/Act" |
eom |
option to assign additional days to February for the 30/360 day count convention |
number of days between date1
and date2
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.