?

Cost of goods sold= opening stock+ net purchases+ expenses on Purchases – sales Which part of formula is wrong?