MeanCalculate Code