Here is a roughish approach. Obviously, there are articles and books that describe it in detail, but I bet that for some in-game calculations you don't need much.
1. Take an object and disassemble it to basical components and modules.
2. Find out what tools / machies / facilities are used to make each component and assemble the object in general.
3. Estimate the facrors of production for the object in general, for each component and for "tools" in point above ( https://goo.gl/images/Z8QOHw )
4. Repeat 1 - 3 further ahead until you reach the required level of detail.