code: @Override
  	public double getDaycount(LocalDate startDate, LocalDate endDate) {
  		if(startDate.isAfter(endDate)) {
  			return -getDaycount(endDate,startDate);
  		}
  
  		int startDateDay 	= startDate.getDayOfMonth();
  		int startDateMonth 	= startDate.getMonthValue();
  		int startDateYear 	= startDate.getYear();
  
  		int endDateDay 		= endDate.getDayOfMonth();
  		int endDateMonth 	= endDate.getMonthValue();
  		int endDateYear 	= endDate.getYear();
  
  
  		// Check if we have last day of February
  		boolean isStartDateLastDayOfFebruary = (startDateMonth == Month.FEBRUARY.getValue() && startDateDay == startDate.lengthOfMonth());
  		boolean isEndDateLastDayOfFebruary = (endDateMonth == Month.FEBRUARY.getValue() && endDateDay == endDate.lengthOfMonth());
  
  		// Last day of February and 31st of a month are both treated as "30".
  		if(isStartDateLastDayOfFebruary || startDateDay == 31) {
  			startDateDay = 30;
  		}
  		if((isEndDateLastDayOfFebruary && !isTreatEndDateAsTerminationDate) || endDateDay == 31) {
  			endDateDay = 30;
  		}
  
  		return (endDateYear - startDateYear) * 360.0 + (endDateMonth - startDateMonth) * 30.0 + (endDateDay - Math.min(startDateDay, 30.0));
  	}
docs: /* (non-Javadoc)
  @see net.finmath.time.daycount.DayCountConventionInterface#getDaycount(org.threeten.bp.LocalDate, org.threeten.bp.LocalDate)