Calculate azimuth