Computational formula for standard deviation