final int[] times = new int[n];
final double[] returns = new double[n];
final LocalDateDoubleEntryIterator iter1 = ts1.iterator();
int i = 0;
while (iter1.hasNext()) {
final int date = iter1.nextTimeFast();
final Double value2 = ts2.getValue(date);
if (value2 == null || Math.abs(value2) < ZERO) {
if (getMode().equals(CalculationMode.STRICT)) {
throw new TimeSeriesException("No data in second series for time " + iter1.currentTime());
}