Comparison of cash and accrual methods of accounting