Calculating elasticity of demand