How is the doppler effect calculated?
Where,
represents the medium's wave propagation speed,
is stand for speed of the receiver relative to the medium, if the receiver is moving towards the source, if the receiver is moving away,
is stand for speed of the source relative to the medium, if the source is moving away if the source is moving towards the receiver.