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