6970717273747576777879
if (fixingDates.get(i+1).lt(startDate) || nextValueDate.le(startDate)) { continue; } d2 = Date.min(nextValueDate, endDate); avgBMA += (index.fixing(fixingDates.get(i))) * (d2.sub(d1)); days += d2.sub(d1); d1 = d2; }