calcVolatility function

Calculate index volatility