/src/main/java/net/finmath/montecarlo/interestrate/products/SwapLegWithFundingProvider.java
final LocalDateTime referenceDate = LocalDateTime.of( legSchedule.getReferenceDate( ) , LocalTime.of( periodIndex, periodIndex) ) ;
final LocalDateTime referenceDate = LocalDateTime.of ( legSchedule.getReferenceDate ( ) , LocalTime.of ( 0, 0 ) ) ;
this.index = index; this.spreads = spreads; this.fundingCapacity = fundingCapacity; } @Override public RandomVariable getValue(final double evaluationTime, final TermStructureMonteCarloSimulationModel model) throws CalculationException { <extra_id_0> double productToModelTimeOffset = 0; try { if(referenceDate != null && model.getReferenceDate() != null) { productToModelTimeOffset = FloatingpointDate.getFloatingPointDateFromDate(model.getReferenceDate(), referenceDate); } }