Question: why set up allowance for doubtful accounts?
Answer: The accrual method of accounting requires you to record expenses in the same period that you earned the revenue. By using an allowance for doubtful accounts, you guess which receivables you don't expect to collect, record an expense for these bad debts, and reduce the carrying value of receivables.