Calculate cost table

I need to calculate my clothes cost.
how to design a table that have to sync fabric price, material price, working hour cost to a costing sheet.