Compute discounted price, profit, margin, markup, and selling price from a target margin.
Formula: selling price = cost ÷ (1 − margin/100). Margin is based on the selling price.