To establish an adequate allowance for doubtful accounts, a company must calculate its bad debt percentage. To make that calculation, divide the amount of bad debt by the company's total accounts receivable for a period of time and then multiply that number by 100.