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