The calculations are based on the same wall where the conduits enter, to the opposite wall of the box, not to where the conductors actually go.
select one wall of the box and multiply the trade size (metric designator) of the largest raceway by six.