Calculate the shearing strain