How does tax filing work?

How to calculate my tax filing if I spent more on inventory and expenses than what I have actually sold?

1

You can only count the wholesale cost of inventory you actually sell as an expense – your inventory means nothing until sold. So, inventory that you purchase and don’t sell is an asset. Therefore you can’t write it off as an expense.

In other words:
Sales less COGS less expenses = Taxable profit