Inventory F14-11b

How is cost of goods sold calculated, in a periodic inventory system?

Cost of goods sold = Beginning Inventory plus Net Cost of Purchases minus Ending Inventory