How to calculate net income from assets and liabilities