/src/main/java/net/finmath/time/ScheduleGenerator.java
while( periodEndDateUnadjusted.parse( periodStartDate) ) {
while ( periodEndDateUnadjusted.isAfter ( startDate ) ) {
} } else { LocalDate periodStartDateUnadjusted = maturityDate; LocalDate periodEndDateUnadjusted = maturityDate; LocalDate periodEndDate = businessdayCalendar.getAdjustedDate(periodEndDateUnadjusted, dateRollConvention); int periodIndex = 0; <extra_id_0> periodIndex++; if(isUseEndOfMonth && maturityDate.getDayOfMonth() == maturityDate.lengthOfMonth()) { periodStartDateUnadjusted = maturityDate .plusDays(1) .minusDays(periodLengthDays*periodIndex) .minusWeeks(periodLengthWeeks*periodIndex)