The calculation nobody does until the conduit is already in the wall. Fill limits exist because cables need to be pullable without damaging the insulation, and because a packed conduit cannot shed heat.
These are pure table lookups with exceptions that catch people out — the 31% two-conductor rule, pigtails counting zero in a box, grounds counting once collectively.