Improving DSO and DPO in Spanish SMEs: how touchless AP changes the cash cycle
ininvoice: DSO (Days Sales Outstanding) measures average collection days: (receivables / sales) × period days. DPO (Days Payable Outstanding) measures average payment days: (payables / purchases) × period days. The average Spanish SME has DSO 75-90 days and DPO 60-75 days. Under Law 3/2004, article 4, the B2B payment term is 30 days from receipt of the goods or services, and up to 60 days by agreement. Touchless AP does not stretch DPO; it brings it to the legal limit with discipline, without late-payment surcharges or losing discounts.
If you are CFO
DSO/DPO/CCC formulas and how to align them with your SME's real cash cycle on a single sheet.
If you are controller
Where DPO days are lost in a manual AP and how to recover them without paying late.
If you are CEO
90-day plan: how much working capital you free up with five concrete levers, without fighting suppliers.
Most Spanish SME CFOs know their DSO by heart. Late collections hurt every month. DPO is the other half of the equation and almost nobody looks at it with the same discipline, even though it moves just as much cash.
The typical error is to assume stretching DPO is always good. It is not. In Spain, Law 3/2004 on combating late payment sets a B2B payment term of 30 days from receipt, which can be extended by agreement up to a maximum of 60 days. Going beyond has a financial cost and a reputational cost. And below, there is an optimum that is not "as late as possible": it is "the day before the contractual due date, capturing prompt-payment discounts when they pay off".
This article is for CFOs, controllers and treasury managers who want to move both KPIs together with operational discipline, not accounting tricks. The thesis: touchless AP does not stretch DPO aggressively; it stabilises it within the legal range and frees working capital without breaking supplier relationships.
What DSO and DPO are: formulas and cash cycle
Three formulas. All three belong in any serious treasury dashboard.
DSO = (receivables / period_sales) × period_days
DPO = (payables / period_purchases) × period_days
CCC = DSO + DIO − DPO (cash conversion cycle)
DIO is Days Inventory Outstanding, the stock component. For services companies DIO is zero. For distribution and manufacturing, it matters as much as DSO and DPO.
What moves real cash is the CCC. If your DSO is 80 days, DIO is 30 and DPO is 60, you are financing 50 days of operation out of your own pocket. Each day you cut DSO or raise DPO (within the legal cap) is one less day of financing.
For an SME billing EUR 5M/year with a 30% gross margin, moving CCC by 10 days equals freeing EUR 100,000 to EUR 140,000 of permanent working capital. It is not cost saving; it is cash returning to the balance sheet.
DSO and DPO benchmarks by sector in Spain
The ranges below are reasonable estimates for Spanish SMEs with 100-2,000 invoices/month, based on published sector benchmarking ranges.
| Sector | Average DSO | Average DPO | Top quartile DPO (legal) |
|---|---|---|---|
| Distribution and wholesalers | 70-85 | 55-70 | 58-60 |
| Multi-location hospitality | 15-25 | 45-60 | 55-60 |
| Construction and subcontractors | 90-120 | 70-95 | 60 (legal cap) |
| Retail with warehouse | 5-15 | 50-65 | 58-60 |
| Professional services | 60-90 | 40-55 | 50-58 |
| Light manufacturing | 75-95 | 55-70 | 58-60 |
Two key readings. First, sectors like construction routinely operate above the 60-day legal cap: it is a well-known structural breach. Second, top quartile in DPO does not mean "as late as possible"; it means "as close to the contractual cap as possible without overshooting and without losing discounts".
Law 3/2004: 30 days, up to 60 by agreement
Article 4 of Law 3/2004 on combating late payment is what you have to remember as a CFO in one sentence: between companies, the payment term is 30 calendar days from receipt of the goods or services; the parties can agree a longer term, but never more than 60 calendar days.
Three operational consequences:
- Automatic late-payment interest. If you pay at 75 days, the supplier can claim late-payment interest on the 15 days of excess: the rate of the European Central Bank's most recent main refinancing operation plus 8 points (art. 7 of Law 3/2004). It accrues without prior demand (art. 5).
- Indemnity for collection costs. EUR 40 per invoice paid late, owed without having to claim it, plus any additional collection costs the supplier can document (art. 8 of Law 3/2004).
- Reporting obligation in annual accounts. Companies required to audit publish PMP (average payment period) in their notes. Visible in the accounts filed at the commercial register.
The average payment period (PMP) that companies publish in their notes points the same way: missing the cap is frequent, especially in construction.
Why touchless AP improves DPO without breaking the supplier relationship
In a typical manual SME AP, an invoice's cycle from receipt to ready-to-pay is 8-15 days. Those days do not go to useful DPO: they are days burned in internal queue, not in supplier credit.
The math is clear. If your contractual due date is 60 days and internal processing takes 12 days, you have two bad options:
- Option A. You pay at maturity (day 60). Your real DPO is 60, but the invoice has been visible to Treasury for 48 days and only 12 financing you.
- Option B. You pay when you process (day 12). Your real DPO is 12. You captured zero days of credit.
Touchless AP cuts those 12 days down to near-instant. That returns 10-12 days of useful DPO that previously vanished in internal queue. And, more importantly: it gives you early visibility of the real due date to schedule payments deliberately, not by urgency.
In addition, automatic three-way matching line by line (invoice, PO, delivery note) catches price and quantity differences before approving payment. An invoice with a variance outside tolerance is not paid blindly; it gets clarified with the supplier on day 3, not day 58. That reduces later credit notes, withholdings due to incidents and disputes that break average DPO. We cover this in depth in cross-checking invoice, PO and delivery note.
Balancing DPO and supplier relationship: prompt-payment discounts
Stretching DPO to the legal cap is not always the optimal move. The formula to keep on your office wall:
cost_skipping_discount = (discount% / (100 - discount%)) × (360 / days_advanced)
Example: 2/10 net 60 (2% if you pay at 10 days, total at 60). The annualised cost of not taking the discount is:
(2 / 98) × (360 / 50) = 14.7% per year
If your cost of financing is 4.5% per year, capturing the discount gives you 10.2 net points. Skipping a 2/10 net 60 to stretch DPO destroys margin.
The operating rule: any prompt-payment discount above 8% annualised is accepted automatically; between 4% and 8%, case-by-case decision based on treasury position; below 4%, rejected and paid at maturity. Touchless AP allows this because it sees the invoice on day 1, not day 12.
Segmenting the payment policy: large vs small supplier
A single payment policy destroys relationships. Three minimum segments:
- Strategic suppliers (top 20% of spend). Pay on the exact contractual due date. No delay or free advance. You negotiate terms, you do not "stretch".
- Long tail (80% of count, 20% of spend). Operations dominate here. Self-employed and micro-SMEs with tight cash flow can hardly absorb 60-day payments. Paying at 30 days to this segment costs little absolute cash and buys service reliability.
- Multinationals with strong bargaining power. They impose their terms; the real lever is taking advantage of prompt-payment discounts when offered.
Business newspapers like Cinco Días have consistently documented that asphyxiating the long tail through excessive DPO is one of the typical drivers of structural late payment in Spain. An SME that operates above 60 days with self-employed suppliers is transferring treasury risk downstream and, eventually, generating insolvency on critical suppliers.
How much useful DPO do you lose in internal queue?
ininvoice ingests invoices from Gmail, cross-checks line by line against PO and delivery note and makes the invoice ready for a person to approve, so the internal queue stops eating into the payment term. See how your invoices match.
How much does each supplier invoice cost you? The accounts payable cost calculator estimates it with your own assumptions. Open the cost-per-invoice calculator
Verifactu and DPO: real-time visibility of supplier credit
Verifactu, the AEAT's verifiable invoicing system, changes an important operational detail for treasury: invoices issued in verifiable mode arrive signed with QR and, when the issuer opts in, registered with the AEAT in real time.
For AP, this means three concrete things in DPO calculation:
- Certain issue date. The DPO contract clock starts with signed data, not with a manual stamp from the entry register.
- Zero duplicate ambiguity. Possible duplicates are held before approval: same normalised number from the same supplier, or same amount and date; a person decides. Double payments distort real DPO.
- Early visibility of debt. Treasury sees supplier liabilities on day 1, not day 12. Schedules payments with full month and quarter horizon.
90-day plan to improve the cash cycle
Five levers in leverage order. The first three require no new software.
- Month 1: measure the baseline. Compute DSO, DPO and CCC for the last closed quarter. Get PMP per supplier (top 20 + long-tail aggregate). Identify how many payments are above the legal cap and how many prompt-payment discounts you lost due to slow processing.
- Month 1-2: close internal DPO leaks. Map the cycle invoice received → approved → ready-to-pay. Each day in internal queue is useful DPO lost. Set an SLA: approval within 48 h of receipt.
- Month 2: segmented payment policy. Top 20% spend = exact contractual maturity. Long-tail self-employed = 30 days. Multinationals = take advantage of discounts. Document and sign.
- Month 2-3: implement touchless AP. Automatic ingestion from email, reading of PDF and image invoices, line-by-line three-way matching, CSV/Excel export importable into the ERP. Recover 10-12 days of operational DPO and gain early visibility of supplier liabilities.
- Month 3: monthly reporting to committee. DSO, DPO, CCC, PMP, % payments above 60 days, discounts captured vs lost. Without recurring reporting, KPIs dilute and you return to the initial situation in six months.
Indicative result (estimate) at 90 days in a well-managed SME: CCC reduced by 8-12 days, working capital freed between EUR 80,000 and EUR 200,000 in companies billing EUR 5-10M. The AP part of the work contributes half that figure; the other half comes from DSO and DIO.
CFO checklist: eight actions this quarter
Concrete, ranked by execution order:
- Compute DSO, DPO and CCC for the last closed quarter, broken down by spend family and supplier segment.
- Audit how many invoices are paid above 60 days. Absolute number and percentage. Compare with PMP published in annual accounts.
- Map the average time between receipt and "ready-to-pay". Identify the dominant bottleneck.
- Inventory prompt-payment discounts offered by top 20 suppliers and compute how many were lost in the last year due to slow processing.
- Define segmented payment policy (top spend / long tail / multinationals) and publish internally.
- Set internal SLA: approval within 48 h of receipt; payment on the exact contractual due date for top spend.
- Activate monthly reporting to the financial committee with the five metrics (DSO, DPO, CCC, PMP, % payments above 60 days).
- Evaluate touchless AP as a specific lever to recover useful DPO and gain early visibility of supplier liabilities.
How many supplier credit days do you lose in internal queue?
Measure it with your own invoices: try it with your real invoices.
Frequently asked questions
- Is stretching DPO to the legal cap always a good idea?
- No. The optimum is to pay the day before the exact contractual due date, capturing prompt-payment discounts when their annualised cost exceeds your financing cost. Skipping a 2/10 net 60 costs 14.7% per year; financing through a bank at 4.5% is the better trade.
- What happens if I pay a B2B invoice at 75 days?
- You breach Law 3/2004. The supplier can claim late-payment interest (the ECB rate plus 8 percentage points) on the overdue amount (art. 7), plus EUR 40 per invoice as indemnity for collection costs (art. 8), and any additional costs it can document. In companies required to audit, PMP is published in the notes.
- How does touchless AP affect real DPO?
- It recovers 10-12 days that in manual AP disappear in internal queue between receipt and "ready-to-pay". Contractual DPO does not change, but useful DPO (days financing you with real supplier credit) does.
- Is the same payment policy for all suppliers a good idea?
- No. Segment: top 20% spend at exact maturity, long-tail self-employed at 30 days, multinationals per contract. A single policy destroys critical relationships or gives away cash unnecessarily.
- How does Verifactu change DPO calculation?
- It provides a certain signed issue date, removes duplicate ambiguity and lets Treasury see supplier liabilities from day 1, not day 12. It improves the database on which DPO is computed; it does not change the formula.
- How much working capital does improving CCC by 10 days release?
- For an SME billing EUR 5M/year with a 30% gross margin, EUR 100,000-140,000 of permanent cash freed. It is not cost saving; it is working capital returning to the balance sheet without additional bank financing.
- Which complementary KPIs should I track alongside DSO and DPO?
- CCC (DSO + DIO − DPO), PMP (average payment period published in the notes), % payments above 60 days, prompt-payment discounts captured vs lost, AP exception rate. Together, those six tell the real treasury story.
- How do I start if I do not have modern AP software?
- Month 1, measure the baseline with an ERP-to-CSV export. Month 1-2, close internal leaks with a 48-h approval SLA. Month 2, define a segmented payment policy. Month 2-3, implement touchless AP. Month 3, monthly reporting to the committee. Without software you do not reach the ceiling, but without measuring the baseline you do not know what software would solve what.
Three things to remember
DSO hurts every month. DPO is often ignored. Both move exactly the same cash.
- The legal B2B term in Spain is 30 days from receipt, and up to 60 days by agreement; no agreement can go beyond 60. Operating above has financial and reputational costs.
- Touchless AP does not stretch DPO aggressively; it recovers 10-12 days burned in internal queue between receipt and "ready-to-pay". Those days are real supplier credit, not accounting trickery.
- The optimum is not "as late as possible". It is "the day before the exact due date, capturing prompt-payment discounts when worthwhile". Without a segmented policy by supplier, you destroy the long tail or give away cash.
If you want to see how your useful DPO looks with automatic ingestion, structured reading and line-by-line matching, start with your own supplier invoices. Pricing is tailored: a proposal built on your own invoices, within 48 hours.
Related content
See a demo with my invoices
Connect Gmail. ininvoice ingests, cross-checks line by line and makes the invoice ready for a person to approve. You recover useful DPO without fighting suppliers.
Try it with your own invoices · no implementation fee