Variance calculator working