Fix duck consumption distance algorithm.