Midpoint Method To Calculate Elasticity