/src/main/java/net/finmath/time/ScheduleGenerator.java
return baseDate;
return maturity;
private static LocalDate createDateFromDateAndOffset(final LocalDate baseDate, double offsetYearFrac) { LocalDate maturity = baseDate.plusYears((int)offsetYearFrac); offsetYearFrac = (offsetYearFrac - (int)offsetYearFrac) * 12; maturity = maturity.plusMonths((int)offsetYearFrac); offsetYearFrac = (offsetYearFrac - (int)offsetYearFrac) * 30; maturity = maturity.plusDays((int)Math.round(offsetYearFrac)); <extra_id_0> } }