/src/main/java/net/finmath/time/daycount/DayCountConvention_ACT_365A.java
final LocalDate leapDayEnd = LocalDate.of( endDate.isBefore( ) , Month.FEBRUARY, 29) ;
final LocalDate leapDayEnd = LocalDate.of ( endDate.getYear ( ) , Month.FEBRUARY, 29 ) ;
final LocalDate leapDayStart = LocalDate.of(startDate.getYear(), Month.FEBRUARY, 29); if(startDate.isBefore(leapDayStart) && !endDate.isBefore(leapDayStart)) { daysPerYear = 366.0; } } if (endDate.isLeapYear()){ <extra_id_0> if(startDate.isBefore(leapDayEnd) && !endDate.isBefore(leapDayEnd)) { daysPerYear = 366.0; } } for(int year = startDate.getYear()+1; year < endDate.getYear(); year++) { if(IsoChronology.INSTANCE.isLeapYear(year)) {