Bad debt and days sales outstanding (DSO): how to calculate them and decide on credit

Past-due debt is the amount owed beyond its due date, measured against the receivables balance. Days sales outstanding (DSO) is how many days, on average, it takes to collect after a sale. The past-due rate is past-due dollars divided by the balance. DSO is receivables divided by credit sales, times the days in the period.

What past-due debt and DSO measure

Both indicators look at the same money, accounts receivable, from different angles.

The past-due rate measures how much of the receivables balance has passed its due date without payment. Each company picks the cutoff: 30, 60 or 90 days late. What matters is fixing the rule and keeping it. In Brazil, banks use more than 90 days past due, the definition the central bank applies to its credit statistics. For a distributor, 90 days is usually too late to react, and 30 works better as a warning.

A note on terms. In US usage, "bad debt" usually means receivables already written off as uncollectible. What this page calls the past-due rate is the earlier stage, when the money can still be collected. In Brazil the single word "inadimplência" covers that stage.

DSO measures speed: in how many days, on average, a sale turns into cash. A DSO that rises while your payment terms have not changed suggests customers are paying later.

One does not replace the other. A company can have a low past-due rate and a high DSO because it sells on long terms and everyone pays on the due date. It can also have the opposite: short terms and an old balance nobody chases. Both belong on the list of indicators behind decision intelligence, and the decision they connect to is extending credit.

How to calculate the past-due rate and DSO

Past-due rate = amount more than X days past due, divided by total accounts receivable, times 100.

DSO = accounts receivable, divided by credit sales for the period, times the number of days in the period.

An illustrative example from a fictional distributor. Accounts receivable stand at $900,000. Of that, $72,000 is more than 30 days past due. The past-due rate, with a 30-day cutoff, is 72,000 divided by 900,000, or 8.0%.

In the same month, credit sales were $600,000. DSO is 900,000 divided by 600,000, times 30 days, or 45 days. If the average terms on orders are 30 days, a DSO of 45 suggests cash arrives about two weeks later than agreed. The reading is approximate: DSO also moves with seasonality and with the size of the month's orders.

Three cautions on the math. Use credit sales only, because cash sales never become receivables and dilute DSO. Set the delinquency cutoff once and do not change it from month to month. And decide what happens to a renegotiated invoice: if it leaves the past-due bucket when renegotiated, the rate improves without anyone paying.

Receivables aging: the balance by days past due

The rate is one number. Aging opens the balance into buckets and shows where the problem sits: money due next week is not the same risk as an invoice from a customer that has been silent for 120 days.

The table below uses the example above. Of the $900,000, most has not yet come due. The amount more than 30 days past due adds up to $72,000, which is the 8.0% rate. The most important line is usually the last one: what has passed 90 days is the part most likely to become a loss.

Two readings help in the meeting. First, the comparison with last month: if the 31 to 60 day bucket grows, the problem is starting and there is still time to act. Second, concentration: two or three customers making up much of the past-due balance is a different problem from lateness spread across the book. For that, cross the aging with an ABC analysis of customers.

Accounts receivable aging: spreadsheet template (illustrative values)
Days past dueAmount ($)% of balanceLast month ($)Change
Current (not yet due)700,00077.8%
1 to 30 days past due128,00014.2%
31 to 60 days past due48,0005.3%
61 to 90 days past due15,0001.7%
Over 90 days past due9,0001.0%
Total receivables900,000100%

Illustrative values from a fictional distributor. Past-due rate with a 30-day cutoff: (48,000 + 15,000 + 9,000) divided by 900,000, or 8.0%. Fill in the last-month column to see the trend by bucket.

The cash conversion cycle: DSO inside the larger calculation

DSO is one of three legs of the cash conversion cycle, which measures how many days the company funds operations out of its own cash.

Cash conversion cycle = days inventory outstanding + DSO, minus days payables outstanding.

With illustrative numbers: 40 days of inventory, plus 45 days of receivables, minus 35 days of payables to suppliers gives a 50-day cycle. Every extra day of DSO adds a day to the cycle, and working capital needs grow with it. Giving a customer more time has a cost, and it shows up in this calculation. Days of inventory come from inventory turnover, which is where the other half of the cash decision usually sits.

Extending credit to close a big sale: the decision to log

The decision these indicators should inform is extending credit to close a large sale. The order is good, the customer is new or over its limit, and sales wants to close. Finance has the policy, but policy bends. Someone approves. Three months later, sales and finance remember different things: sales thinks the agreed terms were 60 days, finance has 45 in the system, and each team shows a different number for the same past-due balance. That is the problem the post on two versions of the truth describes.

The fix is one row in the decision journal, written at the moment of approval:

  • What was decided: a $150,000 limit and 60-day terms for customer X, on a $120,000 order.
  • Who decided and why: the sales director, with finance informed.
  • What you expect to see: all three installments paid within 5 days of the due date.
  • Assumptions: no new order above the limit until the first installment comes due; both teams use the same due date.
  • Date to check: 15 days after the first installment's due date.

On that date, someone opens the row and checks the customer's aging. The verdict is met, not met or inconclusive. If the credit policy has slowed payment across several customers, the journal history shows it, and the policy gets revised with data rather than memory. The check fits in the monthly business review, and writing the expectation first guards the review against outcome bias, where a sale that worked out makes the decision look good even when the risk was high.

Common mistakes and tying it to ERP data

  • Mixing cash sales into DSO. The number comes out lower than reality.
  • Measuring the rate against the month's revenue instead of the balance. The right denominator is what is still open.
  • Letting a renegotiated invoice leave the past-due bucket without a record. The rate improves on paper.
  • Sales and finance counting terms from different dates (order date, invoice date or due date). Pick one.
  • Looking only at the average. A 45-day DSO can hide one large customer at 90 days and several at 30.
  • Calculating only at quarter end. The balance ages in weeks.

Anyone who runs this in an ERP knows it needs invoice, customer and order tables joined together. Data-driven decision making starts with data that both teams accept as the same. Entendo answers questions in plain language directly on the ERP database, in read-only mode, and shows the SQL so you can verify each calculation. See how conversational BI on the ERP database works. The company remains responsible for defining what counts as past due.

Sources

Frequently asked questions

How do you calculate the past-due rate?

Divide the amount more than X days past due by total accounts receivable and multiply by 100. Choose the cutoff X once (30, 60 or 90 days) and keep it. In Brazil, the central bank uses more than 90 days past due in its credit statistics.

How do you calculate days sales outstanding (DSO)?

DSO equals accounts receivable divided by credit sales for the period, times the number of days in the period. With $900,000 receivable and $600,000 in credit sales over 30 days, DSO is 45 days (illustrative example).

What is receivables aging?

It is the accounts receivable balance split into past-due buckets: current, 1 to 30 days, 31 to 60, 61 to 90 and over 90. It shows where the problem sits and how it changes from one month to the next.

What is the difference between bad debt and past-due receivables?

Past-due receivables are invoices that have passed their due date and can still be collected. Bad debt, in US usage, is the portion written off as uncollectible. Tracking the past-due rate gives an earlier warning than waiting for write-offs.

What is a good DSO?

It depends on the industry and on the company's payment terms. There is no single number. A useful benchmark is the terms you actually grant on orders: a DSO well above them means customers are paying later than agreed.

How do you decide whether to extend credit to close a large sale?

Weigh the risk against the gain and log the decision: limit, terms, what you expect to see and when to check. On the due date, check the customer's aging and record the verdict. That way sales and finance read the same record, and the credit policy improves with data.

Want to see aging and DSO straight from your ERP?

Tell us which system and database you use. We will show how the question gets answered and how the SQL stays visible for you to verify.

Talk to the team
L

By Luciano de Oliveira

Founder & CEO, Sozo Data · Updated on