How to calculate bad debt expense, set the allowance for doubtful accounts using the aging method, write off uncollectible invoices, and reduce bad debt.