get_displacement function

Calculate Expected Displacement