calculate volitility