class ActualNL extends ActualTypeDayCount {

  @Override
  public double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate) {
    testDates(firstDate, secondDate);
    long actualDays = secondDate.toEpochDay() - firstDate.toEpochDay();
    int numberOfLeapDays = 0;
    LocalDate temp = nextLeapDay(firstDate);
    while (temp.isAfter(secondDate) == false) {
      numberOfLeapDays++;
      temp = nextLeapDay(temp);
    }
    return (actualDays - numberOfLeapDays) / 365d;
  }

}