fixed moving average calculation