function to compute a rolling fn (rate) of multiple quantities from TS data, eg. fatality and recovery rate
Useful links