Calculation of dispertion