Real profit = sales − product cost − courier & COD charges − courier cost of returned parcels − boost spend tagged to the product.
When one parcel has several products, its sales and courier charges are shared by each product's share of the order. All rows add up exactly to the net profit at the top of Hisab khata.