Description Usage Arguments Value Examples
Evaluates the duration between date1
and date2
in fractional year terms
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 |
date2 |
ending date |
conv |
the day count convention can be either "30/360", "Act/365", or "Act/Act" (default) |
eom |
option to assign additional days to February for the 30/360 day count convention |
fractional years 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.