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