CALCULATE DEFORMATION