A basic tenet of double-entry book-keeping is that total assets (what a business owns) must equal liabilities plus equity (how the assets are financed). In other words, the balance sheet must balance.
Calculate dividends by subtracting year-end retained earnings from start-year retained earnings ... If not, you can calculate dividends using a balance sheet and an income statement.