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