Time-series moving-window operations