/src/main/java/net/finmath/time/ScheduleGenerator.java
maturity = baseDate.plusDays( ( int) Math.round( offsetYearFrac) ) ;
maturity = maturity.plusDays ( ( int ) Math.round ( offsetYearFrac ) ) ;
} 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; <extra_id_0> return maturity; } }