Skip to content

Commit

Permalink
supply dates as references for A_365_CA yearFraction computation
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulXiCao committed Nov 10, 2023
1 parent 478ddcc commit 85fcf79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ql/termstructures/yield/ratehelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ namespace QuantLib {
}

Time DetermineYearFraction(const FuturesRateHelperDates& dates, const DayCounter& dayCounter) {
return dayCounter.yearFraction(dates.earliestDate_, dates.maturityDate_);
return dayCounter.yearFraction(dates.earliestDate_, dates.maturityDate_,
dates.earliestDate_, dates.maturityDate_);
}

FuturesRateHelperDates InitializeDates(const Date& iborStartDate,
Expand Down

0 comments on commit 85fcf79

Please sign in to comment.