I am trying to learn about accrual accounting and how it works. I read that it records income and expenses when they are earned or incurred, not when cash changes hands. Can someone explain this in simple terms with an example so I can understand it better?