Question: how to calculate gross profit or loss?
Answer: Sales - Cost of Goods Sold = Gross Profit.
Gross Profit / Sales = Gross Profit Margin.
(Selling Price - Cost to Produce) / Cost to Produce = Markup Percentage.