relationship shift formula