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