code: public int lengthInDays() {
          if (isUnboundedStart() || isUnboundedEnd()) {
              return Integer.MAX_VALUE;
          }
          long length = end.toEpochDay() - start.toEpochDay();
          return length > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) length;
      }
docs: Obtains the length of this range in days.
  <p>
  This returns the number of days between the start and end dates.
  If the range is too large, the length will be {@code Integer.MAX_VALUE}.
  Unbounded ranges return {@code Integer.MAX_VALUE}.
  
  @return the length in days, Integer.MAX_VALUE if unbounded or too large