$sp$ = sell price
$cp$ = cost price
$p$ = profit
$m$ = margin
So to get $p,$ we do:
$$sp - {sp\over6} - 0.08sp - 0.024sp - cp$$
or, with figures:
$$12.99 - {12.99 \over6} - 12.99 \times0.08 - 12.99 \times0.024 - 8.63$$
This gives $0.84$ profit.
To get margin, we do:
$0.84 / (12.99 / 1.2)$
This gives: $7.8\%$ margin
What would the formula be if we wanted to get the sell price / price to sell at, with a margin of $5\%$?
Apologies for the formatting, I'm new here.