Calculates custom distances between equestrian jumping fences.