Maximum height and distance calculations