Opening capital =
Closing capital + Profit
Opening assets - Opening liabilities
Closing assets - Closing liabilities
Closing liabilities - Closing assets
Opening capital = Opening assets - Opening liabilities