how do you calculate gross margin and contribution margin?
Gross margin is calculated by deducting COGS from revenue and dividing the result by revenue. The result can be multiplied by 100 to generate a percentage.