- Customer payment days (DSO) = trade receivables incl. VAT ÷ revenue incl. VAT × 360; supplier payment days (DPO) = trade payables incl. VAT ÷ purchases incl. VAT × 360; days inventory outstanding (DIO) = average inventory ÷ cost of goods sold × 360.
- Cash conversion cycle = days inventory outstanding + customer payment days − supplier payment days: it shows how many days of operations the business must finance.
- Use VAT-inclusive figures for receivables and payables (which include VAT) and either VAT-inclusive figures throughout or VAT-exclusive figures for revenue and purchases consistently.
- In Morocco, payment terms between commercial businesses are governed by Law 69-21; late payments trigger statutory penalties.
“My customers pay too late” is the most common complaint among business owners. But how many days late, exactly? And what about suppliers and inventory? Three ratios answer this: customer payment days (DSO), supplier payment days (DPO) and days inventory outstanding (DIO). Together, they map the company’s cash conversion cycle.
The three formulas
| Metric | Formula | Interpretation |
|---|---|---|
| Customer payment days (DSO) | Trade receivables and related accounts incl. VAT ÷ Revenue incl. VAT × 360 | Number of days of sales not yet collected |
| Supplier payment days (DPO) | Trade payables and related accounts incl. VAT ÷ Purchases incl. VAT × 360 | Number of days of purchases not yet paid |
| Days inventory outstanding (DIO) | Average inventory ÷ Cost of goods sold × 360 | Number of days of consumption held in stock |
Accounts used from the PCGE (Moroccan General Accounting Plan for Businesses): 3421 (trade receivables), 3425 (bills receivable), 4411 (trade payables), 4415 (bills payable), 3111 (merchandise inventory), etc.
Worked example
Annual figures for a trading company (in MAD):
| Item | Amount |
|---|---|
| Revenue excl. VAT | 14,400,000 |
| Revenue incl. VAT (20% VAT) | 17,280,000 |
| Trade receivables and bills receivable (incl. VAT) | 2,880,000 |
| Consumed purchases excl. VAT | 10,800,000 |
| Purchases incl. VAT | 12,960,000 |
| Trade payables and bills payable (incl. VAT) | 1,620,000 |
| Average merchandise inventory | 1,350,000 |
| Calculation | Result |
|---|---|
| Customer payment days = 2,880,000 ÷ 17,280,000 × 360 | 60 days |
| Supplier payment days = 1,620,000 ÷ 12,960,000 × 360 | 45 days |
| Days inventory outstanding = 1,350,000 ÷ 10,800,000 × 360 | 45 days |
| Inventory turnover = 10,800,000 ÷ 1,350,000 | 8 times per year |
The cash conversion cycle
Cycle = Days inventory outstanding + Customer payment days − Supplier payment days
Here: 45 + 60 − 45 = 60 days. In other words, the business must finance 60 days of operations between the moment it pays its suppliers and the moment it collects cash from its customers. In volume terms: 60 days of purchase cost ≈ 10,800,000 × 60 / 360 = MAD 1,800,000 of cycle financing required.
If the cycle deteriorates
An extension of customer payment days from 60 to 75 days adds 15 days of VAT-inclusive revenue: 17,280,000 × 15 / 360 = MAD 720,000 less cash. A shortening of supplier credit from 45 to 30 days has the same type of effect on purchases: 12,960,000 × 15 / 360 = MAD 540,000.
Pitfalls when reading the ratios
- Seasonality: at year-end (31 December), closing balances do not reflect the annual average. Calculate across twelve month-ends.
- Average vs distribution: one customer at 150 days skews the average heavily. Use an aged receivables balance to see the distribution.
- Bills receivable: cheques and unmatured bills increase receivables and must be included.
- VAT: mixing excl. VAT and incl. VAT figures distorts the ratio. Receivables include VAT, so divide by VAT-inclusive revenue.
- Doubtful accounts: exclude them or analyse them separately (provisions).
- Payables on fixed assets: do not mix them with operating trade payables.
Acting on each payment period
Reducing customer payment days
- Invoice immediately upon delivery or completion (standardised invoicing workflow).
- Clear payment terms on quotes and invoices.
- Deposit on order for long engagements.
- Automated reminders at Day +1, Day +15, Day +30.
- Early-settlement discount (comparing its equivalent annual cost against the cost of credit).
- Factoring, credit insurance for major accounts.
Reasonably extending supplier payment days
- Negotiate the start date (end of month, 60 days end of month).
- Consolidate payments into a single monthly payment run.
- Do not pay before the due date unless a discount exceeds the cost of funds.
Reducing days inventory outstanding
- Review reorder thresholds.
- ABC classification: tight monitoring of the highest-value SKUs.
- Clearance of slow-moving or dormant items.
Going further: separating “normal” credit from overdue balances
An average DSO of 60 days can hide two realities: customers who pay within agreed terms, and customers who are overdue. To distinguish them, separate not-yet-due balances from overdue balances.
| Trade receivables (incl. VAT) | Amount (MAD) |
|---|---|
| Not yet due (within contractual terms) | 1,800,000 |
| Overdue (late) | 1,080,000 |
| Total | 2,880,000 |
| Metric | Calculation | Result |
|---|---|---|
| Total DSO | 2,880,000 ÷ 17,280,000 × 360 | 60 days |
| “Normal” DSO (not-yet-due receivables only) | 1,800,000 ÷ 17,280,000 × 360 | 37.5 days |
| Share due to late payment | 60 − 37.5 | 22.5 days |
The insight is clear: commercial terms account for 37.5 days; 22.5 days come from late payments. The main lever is therefore not negotiating shorter terms, but chasing overdue invoices.
What 8 days saved are worth
Each day of VAT-inclusive revenue represents 17,280,000 ÷ 360 = MAD 48,000. Improving DSO by 8 days (from 60 to 52) therefore releases 8 × 48,000 = MAD 384,000 in cash. If the business finances its needs at 8% per annum, the saving is 384,000 × 8% = MAD 30,720 per year, without selling a single extra dirham.
A weekly chasing schedule
| Overdue band | Action | Owner |
|---|---|---|
| 1 to 15 days | Automated email reminder | Assistant |
| 16 to 30 days | Phone call and confirmation of payment date | Administrative manager |
| 31 to 60 days | Formal reminder letter; suspension of new deliveries above a ceiling | Administrative manager, sales |
| Over 60 days | Formal notice; review of bad-debt provision and legal recovery | Managing director, legal counsel |
Collections do not start on the due date: they begin earlier through prompt invoicing (see the article on the sales cycle) and checking payment terms as soon as a quote is accepted.
Calculating DSO customer by customer
The average payment period conceals wide disparities. For a trading company, the aged balance of five key customers (in MAD incl. VAT) shows:
| Customer | Annual revenue incl. VAT | Balance at 31/12 | Days | Assessment |
|---|---|---|---|---|
| Atlas Distribution | 5,400,000 | 900,000 | 60 | Within terms (60 days) |
| Sahara Matériaux | 3,600,000 | 1,080,000 | 108 | Significant delay |
| Maghreb Équipements | 2,880,000 | 240,000 | 30 | Pays promptly |
| Rif Services | 2,160,000 | 360,000 | 60 | Within terms |
| Other customers | 3,240,000 | 300,000 | 33 | Pays promptly |
| Total | 17,280,000 | 2,880,000 | 60 |
The 60-day average conceals one customer, Sahara Matériaux, whose balance (1,080,000) represents 37.5% of total receivables for 21% of revenue. The action plan focuses on this account: repayment schedule, guarantees, or suspension of deliveries if delays persist. If this customer paid at 60 days like the others, its balance would drop to MAD 600,000 and the average DSO to (1,800,000 + 600,000) ÷ 17,280,000 × 360 = 50 days: a gain of 10 days, or MAD 480,000 in cash.
Early-settlement discount: what does it really cost?
A supplier offers a 2% discount for payment within 10 days instead of 60. The equivalent annual cost of the forgone supplier credit is:
Equivalent annual rate = discount ÷ (1 − discount) × 360 ÷ (60 − 10) = 0.02 ÷ 0.98 × 360 ÷ 50 = 14.7%
If the business has available cash or credit costing less than 14.7%, it is worthwhile paying at 10 days. If it finances its working capital with an overdraft at 8%, taking the discount is advantageous. Conversely, a business offering a 2% discount to a customer for fast payment must compare this 14.7% cost against its own financing cost: for the seller, the discount costs more than an 8% overdraft and is only justified for customers who would otherwise pay very late or during urgent cash needs.
| Discount rate | Days gained | Equivalent annual cost |
|---|---|---|
| 1% | 30 | 12.1% |
| 2% | 50 | 14.7% |
| 3% | 50 | 22.2% |
| 2% | 20 | 36.7% |
(Calculation: discount ÷ (1 − discount) × 360 ÷ days gained.)
Negotiating terms with suppliers
Extending supplier payment terms without harming the relationship requires offering something in return. Example: a company buys MAD 7,200,000 incl. VAT per year from a strategic supplier, paid at 45 days.
| Option | Cash impact | Counterpart |
|---|---|---|
| Move to 60 days | + 7,200,000 × 15 ÷ 360 = 300,000 | Guaranteed volume, annual purchase commitment |
| Payment at 45 days end of month | About + 15 days on average | Usually none, worth requesting |
| Consolidated monthly payment | Predictability for the supplier | Single, strictly honoured payment date |
| Discount for payment at 15 days | − 30 days of credit | Compare against financing cost |
Payment reliability is a negotiating lever: a supplier paid consistently on the due date is far more willing to grant favourable terms.
A monthly payment-days dashboard
Six rows, updated every month from the trial balance:
| Metric | Excel formula (example) | Alert threshold |
|---|---|---|
| Customer payment days (DSO) | =Receivables_Incl_VAT / Revenue_Incl_VAT_12M * 360 |
Above sales terms + 10 days |
| Supplier payment days (DPO) | =Payables_Incl_VAT / Purchases_Incl_VAT_12M * 360 |
Below average contractual terms |
| Days inventory outstanding (DIO) | =Average_Inventory / Cost_of_Goods_Sold * 360 |
Increase of more than 10% in one quarter |
| Cash conversion cycle | =DIO + DSO - DPO |
Increase of more than 5 days in one quarter |
| Share of overdue receivables | =Overdue / Receivables_Incl_VAT |
Above 25% |
| Top 5 customers: share of receivables | =SUM(Top5) / Receivables_Incl_VAT |
Above 50% |
Clear alert thresholds and a one-page monthly report for management turn these ratios into concrete actions: chasing overdue balances, tightening credit limits, renegotiating terms or reviewing inventory levels.
Late payments and cash flow: the impact calculation
An average 15-day delay across all customers, on annual VAT-inclusive revenue of MAD 17,280,000, ties up:
| Assumption | Calculation | Cash tied up |
|---|---|---|
| Average delay of 15 days | 17,280,000 × 15 ÷ 360 | 720,000 |
| Financing cost at 8% per year | 720,000 × 8% | 57,600 per year |
Late payments therefore carry a direct, measurable financing cost: the cost of average delays often justifies investing in tighter credit control (a dedicated staff member, automated chasing software, credit insurance).
The legal framework
Law 69-21 on payment periods sets maximum payment ceilings between commercial businesses and provides for late-payment penalties. A business that pays its suppliers too late exposes itself to these penalties as well as strained supplier relationships. Check the statutory limits applicable to your sector.
Setting up ongoing monitoring
Maintain a three-line monthly table (DSO, DPO, DIO), plus the cash conversion cycle and working capital requirement in days. Pair it with an aged receivables balance to identify which customers to chase. See the impact of these metrics on working capital requirement (WCR).
Special cases and edge situations
A business bills customers in advance (subscriptions). Trade receivables are low while deferred revenue exists; DSO is not meaningful, and collections are tracked instead via the due-date collection rate.
Sales are made on credit to private individuals alongside cash sales. DSO is distorted by cash sales; calculate payment days on credit sales only.
Suppliers are paid by bills of exchange. Include bills payable in the DPO calculation, aligned with their maturity dates.
Strategic stock is built up ahead of a price increase. Days inventory outstanding rise temporarily; distinguish this from structural drift.
Statutory payment periods apply. Agreed terms must comply with statutory ceilings; exceeding them exposes the company to late-payment penalties (see Law 69-21).
Frequently asked questions
Why use 360 days?
It is a standard financial analysis convention (a commercial year of 12 months of 30 days). You may use 365 days for strict comparisons, provided you apply it consistently over time and across companies.
What does a customer payment period of 60 days mean?
It means that, on average, the business collects cash from its sales 60 days after making them. Because it is an average of outstanding balances, a 60-day DSO may hide customers paying at 30 days and others at 120 days.
Is a long supplier payment period always good?
It reduces the working capital requirement, but overly long payment periods strain supplier relationships, can cost lost early-settlement discounts and expose the company to penalties if statutory ceilings are breached.
How do you calculate inventory turnover?
Turnover = cost of goods sold ÷ average inventory. A turnover of 9 means inventory is renewed 9 times a year, equivalent to 360 ÷ 9 = 40 days inventory outstanding.
Article written from the official texts and the firm’s engagement practice. It shows its publication date and, where applicable, its last review.