Implementation of ACT/365L.
Calculates the day count by calculating the actual number of days between startDate and endDate.
A fractional day is rounded to the approximately nearest day.
The day count fraction is calculated using ACT/365L convention, that is, the
day count is divided by 365 if the end date is not a leap year and 366 if the end date is a leap year.