Calculating The Doppler Effect