how to find the phase shift