/src/main/java/net/finmath/time/daycount/DayCountConvention_30E_360.java
final int startDateYear = startDate.getYear( ) ; final int startDateMonth = startDate.getMonthValue( ) ;final int startDateDay = startDate.getDayOfMonth( ) ;
final int startDateDay = startDate.getDayOfMonth ( ) ; final int startDateMonth = startDate.getMonthValue ( ) ; final int startDateYear = startDate.getYear ( ) ;
} @Override public double getDaycount(final LocalDate startDate, final LocalDate endDate) { if(startDate.isAfter(endDate)) { return -getDaycount(endDate,startDate); } <extra_id_0> final int endDateDay = endDate.getDayOfMonth(); final int endDateMonth = endDate.getMonthValue(); final int endDateYear = endDate.getYear(); double daycount = (endDateYear - startDateYear) * 360.0 + (endDateMonth - startDateMonth) * 30.0 + (Math.min(endDateDay, 30.0) - Math.min(startDateDay, 30.0)); if(is30Eplus360 && endDateDay == 31) { daycount +=1.0;