Time-series toolbox