How to works calculation with semiproducts

How do I add inventory items if I only know the total quantity of semi-finished products? Of course, I can calculate manually, but I would like to be able to add only the output value to the warehouse so that the program automatically counts inventory items.