Analyzing transactions using the accounting equation