Gross profit is calculated as:
Sales revenue plus sales returns less cost of sales
Sales revenue less sales returns plus cost of sales
Sales revenue less sales returns less discount allowed less cost of sales
Sales revenue less sales returns less cost of sales
Sales revenue less sales returns less cost of sales
Sales revenue less sales returns less cost of sales = Gross profit.