Fixed horizontal discance calculation