how to calculate a deviation - Search