Calculating The Doppler Shift