Calculating Cost of Sales

Yes, read through this topic where Opening inventory + Purchases - Closing inventory is discussed.