Formula for Calculating elasticity