Working capital is calculated by subtracting the value of all current liabilities from that of the current assets.
Working capital = Current Assets - current liabilities.
Current assets owned by the company include inventory, cash in hand, advance payments, etc. Current liabilities may include short-term debts, unpaid expenditures, outstanding payments to creditors, etc.