Added Calculation function