Dude, take an accounting class and spare yourself further embarrassment ......
"There are several ways to calculate COGS but one of the more basic ways is to start with the beginning inventory for the period and add the total amount of purchases made during the period, and then deducting the ending inventory."