Fix timeseries overlapping calculation.