Gross and net margin from cost and price inputs.
Gross margin = (Revenue โ COGS) รท Revenue. Net margin also subtracts operating expenses.