Calculation of uncertainty