/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_365A.java
if ( leapDayEnd.isLeapYear( ) ) {
if ( startDate.isLeapYear ( ) ) {
@Override public double getDaycountFraction(final LocalDate startDate, final LocalDate endDate) { if(startDate.isAfter(endDate)) { return -getDaycountFraction(endDate,startDate); } double daysPerYear = 365.0; <extra_id_0> final LocalDate leapDayStart = LocalDate.of(startDate.getYear(), Month.FEBRUARY, 29); if(startDate.isBefore(leapDayStart) && !endDate.isBefore(leapDayStart)) { daysPerYear = 366.0; } } if (endDate.isLeapYear()){