Calculate measurement uncertainty