Actual/252 differs significantly from all other day count conventions in that its numerator is calculated as the number of business days between two dates and the denominator is 252, which is the average number of business days in a year in Brazil.
In order to calculate the day count fraction you must know the calendar of holidays between the start and end date of the period in order to be able to count the number of valid business days; the number of days which are not weekends or national holidays.
Once you have the count of business days the calculation is simply:
Number of business days/252
Hi,
The daysBetween method is a utility method on the abstract DaycountCalculator base class, it was only really put there to remove duplication from the concrete implementations.
If you want to get the business days between two dates, you should use the getBusinessDaysBetween method on the holiday calendar itself.
Hope this helps.
calling daysBetween on the Business252 calculator returns the actual number of days between calendars, not the number business days between calendar. Why is that?