cargo legs computations