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