And only the advertising fee can be deducted.
The salary, social security and rent you mentioned are only the current expenses of your company, which can be said to be a company cost.
Company costs mainly include main business costs, current expenses and taxes.
Gross profit = total revenue-operating costs-taxes-expenses-income tax