Collections: early, late, recovery, and the ethics of each
Collections is a funnel with a cost at every stage. Measure cure on instalments old enough to judge, count a promise only when it is kept, and audit the call log before you read the answer key
A collector calls a borrower who is behind on a loan, and the borrower promises to pay on a stated day. Across the 144 promises to pay in Owoleaf's lab collections data, roughly how many are kept? A promise counts as kept when repayments from the call to the end of the promised day reach the promised amount.
Collections is the work of getting money back from a loan that has missed a payment. It is the stage the lender is least proud of and most dependent on. A lender has a claim on a person, and how it presses that claim is regulated, reputational and ethical, as well as financial. This chapter teaches the stages, the numbers a collections team lives by, what an agency adds and costs, and the conduct rules. The lab builds a checker that finds contact-policy breaches before you see the answer key.
Days past due (DPD), the status ladder and the arrears amount are in the loan lifecycle. They are used here without being re-taught.
The stages, and what each is for
A collections team works a loan in stages that follow days past due. The names and the day counts are the lender’s own. Owoleaf’s, which are illustrative and live in the lab’s code, are:
| Stage | Days past due | Purpose | Channels in the lab |
|---|---|---|---|
| Early | 1 to 29 | Remind. Most borrowers who are late forgot, or are waiting for pay day | SMS, push notification, a call |
| Late | 30 to 89 | Find out why, agree a plan or a date | Calls, letters at day 30 and 60, a field visit |
| Recovery | 90 and over | The loan is in default (the lab’s 90-day line). Pass it to an agency or sell it | An outside agency, from day 90 |
The early stage is a reminder service and should cost almost nothing. The late stage is a conversation and costs real money, because people are in it. The recovery stage is a decision about what a bad loan is worth to someone else.
Owoleaf’s collections tables record each action: when it happened, the days past due of the oldest unpaid instalment at that moment, the channel, who was contacted, the outcome and an illustrative cost. At the cut-off the book holds 1,809 actions on 115 loans. The cost of an action is invented, and the figures below are the lab’s: a push notification ₦0, an SMS ₦4, a call ₦150, a letter ₦500 and a field visit ₦3,000.
The split by stage is the first thing to compute:
| Stage | Actions | Cost | Mix |
|---|---|---|---|
| Early | 1,330 | ₦70,332.00 | SMS 483, call 456, push 391 |
| Late | 479 | ₦138,600.00 | Calls 374, letters 93, visits 12 |
| Recovery | 0 | ₦0.00 | none |
The arithmetic is checkable. The 830 calls cost 830 × ₦150 = ₦124,500, the 93 letters ₦46,500, the 12 visits ₦36,000 and the 483 SMS ₦1,932. The total is ₦208,932.00. The late stage has 26.5% of the actions and 66.3% of the cost, because a letter costs about 125 SMS messages and a visit about 750.
Recovery has no actions at all. In the lab, Owoleaf stops working a loan when it passes it to an agency, and logs nothing about what the agency then does. Owoleaf has 36 placements and no record of how the agency treated any of those borrowers. That matters in the conduct section.
Measuring cure the wrong way, then the right way
A cure is an instalment that was late and is then paid in full. A cure rate for a stage is the share of instalments that reached that stage and were cured before the next one began. The roll rate is the share that moved on to the next stage instead. A lender watches these because a falling cure rate in the early stage is the first sign that its borrowers are in trouble, months before defaults show.
There are two ways to get them wrong.
The first error: treat a recent late instalment as failed. An instalment that fell due 12 days before the cut-off and is unpaid is not a failure. It has not been in the late stage long enough to say. If you count it as “reached day 30 and not cured”, every recent month makes the rate look worse. The fix is a maturity rule: only count an instalment in a stage’s rate once its due date is at least as many days before the cut-off as the stage needs. The early stage needs 30 days, because that is when it ends. The late stage needs 90.
The second error: count in the wrong unit. The loan lifecycle chapter showed that DPD counts from the oldest unpaid instalment, and the collections team works the loan, so a loan with three missed instalments is one chase. A cure rate computed per instalment counts it three times. This chapter measures instalments, because a repayment clears one instalment at a time, and it says so.
In the lab you compute both, naive and mature. The working for the mature case is:
- 947 instalments fell due before the cut-off. 770 were paid on or before the due date, 114 were paid late, 63 are still unpaid.
- Instalments that reached the early stage and are at least 30 days old: 168. Of them 100 were paid within 29 days. The cure rate is 100 ÷ 168 = 59.5%, and the roll rate is 68 ÷ 168 = 40.5%.
- Instalments that reached day 30 and are at least 90 days old: 55. Of them 11 were paid before day 90. The cure rate is 11 ÷ 55 = 20.0% and the roll rate 44 ÷ 55 = 80.0%.
- Instalments that reached day 90: all 44 mature ones are still unpaid. In this generated book, a borrower who passes 90 days past due never pays again, so the recovery stage cures nothing. That is the lab’s design and not a fact about borrowers. Real books recover some.
The naive version, which counts every instalment that reached the stage whatever its age, gives 57.1% for the early stage and 17.1% for the late. Both are lower than the true rates because the newest arrears are still alive. The difference is small here because the book is old enough. It is large in a young book, when a lender has little else to go on.
Read the shape, not the decimals. Three in five early-stage instalments cure, one in five late-stage ones does, and none after 90 days. Effort counts most early, which is also when it is cheapest.
Promises to pay
On a call the collector asks when the borrower will pay. A promise to pay (PTP) is a stated amount on a stated date. The lab records every promise: when it was made, the amount, the date, and whether it was kept, meaning repayments from the call to the end of the promised day reach the amount.
Collections teams count promises because they are easy to count. The lab shows why that is a trap. 144 promises were made on 80 loans, and 31 were kept: 21.5%. By money, the promises were worth ₦4,267,977.81 and the kept ones ₦1,053,032.19, or 24.7%.
The kept rate falls with each promise on the same loan:
| Promise on the loan | Made | Kept | Rate |
|---|---|---|---|
| First | 80 | 21 | 26.2% |
| Second | 40 | 8 | 20.0% |
| Third | 16 | 2 | 12.5% |
| Fourth or later | 8 | 0 | 0.0% |
And 49 of the 80 loans never had a promise kept. Those 49 loans made 95 of the 144 promises, two in every three. A team that scores its collectors on promises obtained will be pleased by a borrower who promises again and again, and the borrower is the one least likely to pay. Eight promises are too few to call a trend, so read the last row as a warning.
A better measure is the kept rate for first promises, plus the money collected inside the promised window.
Cost per naira collected, and what it hides
The question a finance manager asks is how much it costs to collect a naira. The lab can answer it, if you attach the cost of each action to the instalment it was chasing and compare it with the money that instalment later paid. Owoleaf chased 143 instalments:
| Chased instalments | Count | Collected | Spent | Kobo spent per naira collected |
|---|---|---|---|---|
| Cured in 1 to 7 days | 38 | ₦2,661,757.95 | ₦3,950.00 | 0.15 |
| Cured in 8 to 29 days | 48 | ₦1,670,436.25 | ₦23,278.00 | 1.39 |
| Cured in 30 to 89 days | 13 | ₦472,987.65 | ₦18,460.00 | 3.90 |
| Never cured by the cut-off | 44 | ₦0.00 | ₦163,244.00 | no collection |
| All | 143 | ₦4,805,181.85 | ₦208,932.00 | 4.35 |
The working: ₦208,932.00 ÷ ₦4,805,181.85 = 0.0435, which is 4.35 kobo per naira. A naira cured in the first week cost 0.15 kobo, and one cured after 30 days cost 3.90 kobo, about 26 times as much.
Three things sit behind that tidy ratio.
- The spend that bought nothing is the largest. ₦163,244.00 of ₦208,932.00, or 78%, went on the 44 instalments that never cured. The per-naira figure on cured instalments is 0.95 kobo (₦45,688.00 ÷ ₦4,805,181.85), and it flatters the team by a factor of more than four. Report both.
- Attribution is generous. An instalment cured on day 2 was probably cured by a borrower who forgot and then remembered, yet the ₦4 SMS gets the credit. To know what collection adds, you need an uncontacted comparison group, which only an experiment gives.
- The cost column is only the action cost. It leaves out the collector’s salary, the dialler, the complaints desk and the cost of a customer who leaves. A real cost per naira is higher and the ranking of channels can change when wages are in.
Cost per naira compares stages and channels. It is not a target to push to zero: the cheapest collection is a threatening text to a thousand people.
Recovery: an agency, or a sale
At 90 days past due Owoleaf has two common choices for a loan it does not expect to collect itself. It can place the loan with a collections agency, which works the debt for a fee and a share of what it recovers. Or it can sell the debt to a buyer at a price, once, and take the loss on the rest.
The lab has 36 placements: 34 loans in default and 2 written off. The principal still outstanding on them is ₦1,730,900.95. The agency’s fee in the lab is 20% of what it recovers, which is invented. And the lab’s recovery is 0, because the generator never has a defaulted borrower pay again. So the recovery stage can only be modelled, and you must state the assumption. The lab prints three:
| The agency recovers | Gross | Agency fee (20%) | Owoleaf keeps |
|---|---|---|---|
| 5% of principal | ₦86,545.05 | ₦17,309.01 | ₦69,236.04 |
| 10% of principal | ₦173,090.10 | ₦34,618.02 | ₦138,472.08 |
| 20% of principal | ₦346,180.19 | ₦69,236.04 | ₦276,944.15 |
For a sale, a buyer’s price is quoted in kobo per naira of face value. The arithmetic of the choice is short. Owoleaf keeps 80% of whatever the agency recovers, so an agency recovering 10% is worth the same as a sale at 8 kobo per naira (0.8 × 10%). The lab prints that sale at ₦138,472.07, a kobo less than the 10% agency row because of integer rounding. A sale gives certainty and ends the tie to the borrower; the agency gives upside and keeps the tie. The choice depends on a recovery rate you must estimate, which the lab cannot give you.
Two things need to be said about both routes.
The lender is still answerable. Placing a loan does not hand over the responsibility for how the borrower is treated, and for sales it can be unclear who answers to the borrower afterwards. The rules below say that a regulated lender answers for its agents.
The fee shapes the behaviour. An agency paid a share of recoveries is paid to collect, and is not paid to be fair. That is not a charge against agencies. It describes the incentive, and is why the contract and the checks have to carry the fairness. It is also why the best-recovering collector is the one worth auditing first.
Retrying a failed direct debit or a card on file is a collection action too, governed by the mandate: direct debit and mandates covers what a lender may do on one.
Conduct: what the rules say, and Owoleaf’s own policy
Two things are true at once: a lender may ask for money it is owed, and a borrower is entitled to courtesy and privacy. The rules mark the line.
For digital lenders in Nigeria, the Federal Competition and Consumer Protection Commission (FCCPC) issued new rules in 2025. The FCCPC’s own release says it issued the Digital, Electronic, Online or Non-Traditional Consumer Lending Regulations 2025 to tackle abuses in digital lending, including abusive loan recovery and harassmentas of 2026-11. Press reports say the abuses included messages to a borrower’s family, employer and other contacts. That is reporting about a problem, not the text of a rule.
This chapter could not read the Regulations’ own clauses on collection, so it does not quote them. One law-firm analysis (commentary, not the rule) says lenders cannot hire agents or vendors for debt recovery without the FCCPC’s knowledge, and that it puts the Regulations’ effect on 3 September 2025 after gazetting on 21 July 2025, where the FCCPC’s release gives 21 July 2025as of 2026-11. Sources disagree on the effective date, so read the gazetted text before relying on either. Whether a lender is a digital lender within the Regulations depends on how it lends, and which licence it needs is a module 4 question.
The Central Bank of Nigeria (CBN) has consumer-protection rules for the institutions it licenses, and they bear on debt recovery. Search summaries say the CBN’s revised Consumer Protection Regulations, published as an exposure draft that one summary dates December 2023, require a notice of the outstanding obligation before debt collection begins and make the institution liable for its recovery agentsas of 2026-11. The 8.00pm to 8.00am limit (no telephone or personal contact for recovery in those hours without the customer’s prior consent) appears, in a search summary, in a 2019 CBN draft of Guidelines on Responsible Business Conductas of 2026-11. This chapter could not open these documents. It cannot confirm that the time limit survived into a final rule, whether the notice and agent points are in force in the 2019 Regulations or only in the revised draft, or whether the draft was adopted. Whether the CBN’s rules reach Owoleaf depends on the licence structure in module 4. Read the documents before you rely on any point.
Owoleaf’s own policy is a different thing, and the lab says so. It is illustrative and set in collect.py:
- No call or visit before 08:00 or after 20:00 Lagos time.
- No more than three calls to a borrower in a day.
- No calls to anyone but the borrower: not a reference, not an employer.
The hours match the limit a search summary attributes to a 2019 CBN draft. That is not a claim that the lab’s policy is the rule. A lender writes a policy that is at least as strict as the rules that bind it, and a policy that nobody checks is a statement and not a control. The lab’s checker is the control.
The ethics of each stage
The numbers rank the stages by cost and cure. Ethics ranks them by risk to the borrower, and the two run in opposite directions.
Early. The risk is low: a reminder to a person who forgot. What goes wrong is volume and tone. Five messages in a day with a veiled threat is not a reminder. The ethic is that the message says what is owed, when and how to pay, and nothing else.
Late. This is the stage of the call, and the risk is real. A collector has a script, a target and a phone, and the borrower is in trouble. What goes wrong is contact at the wrong time and with the wrong person, a false threat, and chasing a debt the borrower disputes. The ethic is to find out why the borrower is not paying, and offer a plan where there is one. A borrower who lost income needs a different conversation from one who is ignoring the lender. A promise the borrower cannot keep is not a success, as the kept rate showed.
Recovery. The risk is highest because the lender has stepped back. A third party is now speaking for the lender, paid by results, to a person who is already in default. What goes wrong is the thing in the Why: a call to an employer, which tells a third party that a person owes money. That breaches privacy and costs the borrower her standing at work. The ethic is that the lender answers for its agent, can see what the agent did, and has written down what is not allowed.
One rule applies at every stage: a threat you cannot carry out, such as a court date that has not been set or an arrest for a civil debt, is a false threat. Ask a lawyer what a lender may say about legal action, and put it in the script.
What good and bad look like
Signals can point the same way as the borrower’s interest, or against it.
| Reads as good | Reads as bad |
|---|---|
| A high early-stage cure rate at a low cost per naira | A high count of calls per loan |
| A first-promise kept rate that stays steady | A count of promises obtained as the target |
| Few flagged calls per 100 calls, and none to third parties | One collector far above the others on flagged calls |
| Disputes and wrong numbers stop the chase until someone has looked | The same loan chased again within days of a dispute |
| The agency’s call log arrives in a format the lender can check | Placement with no view of what the agency does |
What the data can and cannot see
The conduct checker you run in the lab finds what the data records. It has three blind spots.
- No consent to be contacted. The tables do not say whether a borrower agreed to a call outside the hours, or asked not to be called. A call at 21:40 might be lawful with consent. The checker flags it and a person decides.
- No content. The table holds a channel and an outcome, not the words. A polite call and a threatening one look the same.
- No view after placement. Once a loan goes to an agency, Owoleaf’s tables have nothing. To audit the agency, Owoleaf needs the agency’s call log, in a format it can check, as a term of the contract. That is Oghogho’s lever, and the Decide at the end of the chapter turns on it.
The checker cannot say whether a breach was on purpose. The lab’s generator gives one collector worse habits, and you find that collector by counting, not by guessing at intent.
You work in labs/finance against data/finance.sqlite, the scale 0.1 book (372 loans). Every step saves a short script and runs it. Every amount is illustrative, and money is integer kobo in the code. Do not open data/answers/collections_breaches.csv before step 7: the checker comes first.
1. Build the collections tables. If collection_actions is missing, run collect.py after loans.py. It is safe to run again: it drops and rebuilds its three tables with the same seed.
cd labs/finance
python3 generate.py && python3 loans.py # skip if data/ already has the loan book
python3 collect.py
python3 check.py | grep -E "collections|OK"collect.py prints two lines (the second counts the breaches in the answer key and names the file; do not open it yet):
1809 collection actions on 115 loans, 144 promises (31 kept), 36 agency placements
planted policy breaches (answers/collections_breaches.csv): outside_hours 19, third_party_contact 20, too_many_calls 8check.py runs invariants 16 to 18 (no action chases an instalment before it is due or after it is paid; every promise comes from a call or visit that recorded one; placements happen at 90 days or later). The filter shows:
collections: 1,809 actions, 144 promises, 36 placements; checks 16-18 run
OK: all invariants hold2. The stages and their cost. Save as stages.py. It assigns each action to a stage by its days past due and totals cost in kobo.
import sqlite3
from collections import defaultdict
db = sqlite3.connect("data/finance.sqlite")
def naira(kobo):
return f"₦{kobo // 100:,}.{kobo % 100:02d}"
# The stages are Owoleaf's, ILLUSTRATIVE: early 1-29 days past due, late 30-89, recovery 90 and over.
def stage(dpd):
return "early" if dpd < 30 else "late" if dpd < 90 else "recovery"
acts = defaultdict(int)
cost = defaultdict(int)
mix = defaultdict(lambda: defaultdict(int))
for dpd, channel, cost_kobo in db.execute("SELECT dpd, channel, cost_kobo FROM collection_actions"):
s = stage(dpd)
acts[s] += 1
cost[s] += cost_kobo
mix[s][channel] += 1
print(f"{'stage':<9}{'actions':>8}{'cost':>16} channels")
for s in ("early", "late", "recovery"):
chans = ", ".join(f"{c} {n}" for c, n in sorted(mix[s].items(), key=lambda x: -x[1]))
print(f"{s:<9}{acts[s]:>8}{naira(cost[s]):>16} {chans or '-'}")
print(f"{'all':<9}{sum(acts.values()):>8}{naira(sum(cost.values())):>16}")
loans, = db.execute("SELECT COUNT(DISTINCT loan_id) FROM collection_actions").fetchone()
placed, = db.execute("SELECT COUNT(*) FROM placements").fetchone()
print(f"loans chased by Owoleaf: {loans}; loans placed with an agency: {placed}")
print("cost per action, by channel")
for channel, n, per in db.execute(
"SELECT channel, COUNT(*), MAX(cost_kobo) FROM collection_actions GROUP BY channel ORDER BY MAX(cost_kobo) DESC"):
print(f" {channel:<6}{n:>5} actions at {naira(per):>10} each")python3 stages.pystage actions cost channels
early 1330 ₦70,332.00 sms 483, call 456, push 391
late 479 ₦138,600.00 call 374, letter 93, visit 12
recovery 0 ₦0.00 -
all 1809 ₦208,932.00
loans chased by Owoleaf: 115; loans placed with an agency: 36
cost per action, by channel
visit 12 actions at ₦3,000.00 each
letter 93 actions at ₦500.00 each
call 830 actions at ₦150.00 each
sms 483 actions at ₦4.00 each
push 391 actions at ₦0.00 eachThe late stage holds 479 of 1,809 actions (26.5%) and ₦138,600.00 of ₦208,932.00 (66.3%). The recovery stage has no rows: the book logs nothing about what an agency does. 115 loans were chased and 36 were placed, so Owoleaf’s team stopped working those 36 at day 90.
3. Cure and roll rates, naive and mature. Save as cure.py. It finds the day each instalment was paid in full (a late fee does not pay an instalment down), then counts a stage’s cures with and without the maturity rule.
import sqlite3
from collections import defaultdict
from datetime import date
db = sqlite3.connect("data/finance.sqlite")
cut_off = date.fromisoformat(db.execute("SELECT value FROM loan_book_meta WHERE key='cut_off'").fetchone()[0])
total = {(l, n): (date.fromisoformat(d), t) for l, n, d, t in db.execute(
"SELECT loan_id, instalment, due_date, total_kobo FROM schedule")}
# The day each instalment was paid in full. A late fee does not pay an instalment down.
got = defaultdict(int)
cleared = {}
for loan, n, paid_at, amount, fee in db.execute(
"SELECT loan_id, instalment, paid_at, amount_kobo, late_fee_kobo FROM repayments ORDER BY paid_at, id"):
got[(loan, n)] += amount - fee
if got[(loan, n)] >= total[(loan, n)][1] and (loan, n) not in cleared:
cleared[(loan, n)] = date.fromisoformat(paid_at[:10])
# age at the cut-off, and days late when it was cleared (None if still unpaid)
rows = []
for key, (due, _) in total.items():
if due >= cut_off:
continue # not due yet: neither late nor paid
rows.append((key, (cut_off - due).days, (cleared[key] - due).days if key in cleared else None))
print("instalments due before the cut-off:", len(rows))
print(" paid on or before the due date:", sum(1 for _, _, d in rows if d is not None and d <= 0))
print(" paid late:", sum(1 for _, _, d in rows if d is not None and d > 0))
print(" still unpaid:", sum(1 for _, _, d in rows if d is None))
def stage_rates(enter, leave, label, mature):
"""Of instalments that reached day `enter`, how many were paid before day `leave`?
If mature, drop those too recent to have had `leave` days (they may still cure)."""
reached = [(age, d) for _, age, d in rows if d is None or d >= enter]
if mature:
reached = [(age, d) for age, d in reached if age >= leave]
cured = sum(1 for _, d in reached if d is not None and d < leave)
n = len(reached)
print(f" {label:<18}{'mature' if mature else 'naive':<8}reached {n:>3} cured {cured:>3} ({cured / n:6.1%}) rolled on {n - cured:>3} ({(n - cured) / n:6.1%})")
print("cure and roll rates by stage")
for mature in (False, True):
stage_rates(1, 30, "early (day 1-29)", mature)
stage_rates(30, 90, "late (day 30-89)", mature)python3 cure.pyinstalments due before the cut-off: 947
paid on or before the due date: 770
paid late: 114
still unpaid: 63
cure and roll rates by stage
early (day 1-29) naive reached 177 cured 101 ( 57.1%) rolled on 76 ( 42.9%)
late (day 30-89) naive reached 76 cured 13 ( 17.1%) rolled on 63 ( 82.9%)
early (day 1-29) mature reached 168 cured 100 ( 59.5%) rolled on 68 ( 40.5%)
late (day 30-89) mature reached 55 cured 11 ( 20.0%) rolled on 44 ( 80.0%)770 + 114 + 63 = 947. In the mature rows, cure and roll add to the instalments reached (100 + 68 = 168, 11 + 44 = 55). The naive rows are lower because 9 early and 21 late instalments are too recent to judge and are counted as failures. The early stage cures about three in five; the late stage one in five.
4. Promises to pay. Save as promises.py. It counts the kept rate overall, by money and by how many promises the loan had already produced.
import sqlite3
from collections import defaultdict
db = sqlite3.connect("data/finance.sqlite")
def naira(kobo):
return f"₦{kobo // 100:,}.{kobo % 100:02d}"
rows = db.execute("SELECT loan_id, made_at, amount_kobo, kept FROM promises ORDER BY made_at, id").fetchall()
n, kept = len(rows), sum(r[3] for r in rows)
asked = sum(r[2] for r in rows)
got = sum(r[2] for r in rows if r[3])
print(f"promises {n}, kept {kept} ({kept / n:.1%}); promised {naira(asked)}, kept promises worth {naira(got)} ({got / asked:.1%} of the money)")
seen = defaultdict(int)
by_order = defaultdict(lambda: [0, 0])
per_loan = defaultdict(lambda: [0, 0])
for loan, made, amount, k in rows:
seen[loan] += 1
order = min(seen[loan], 4)
by_order[order][0] += 1
by_order[order][1] += k
per_loan[loan][0] += 1
per_loan[loan][1] += k
print("kept rate by how many promises the loan had already produced")
for order in sorted(by_order):
m, k = by_order[order]
label = f"{order}" if order < 4 else "4 or more"
print(f" promise number {label:<9}{m:>3} made, {k:>3} kept ({k / m:5.1%})")
none = [l for l, (m, k) in per_loan.items() if k == 0]
print(f"loans with a promise: {len(per_loan)}; with no promise ever kept: {len(none)}, "
f"which made {sum(per_loan[l][0] for l in none)} of the {n} promises")python3 promises.pypromises 144, kept 31 (21.5%); promised ₦4,267,977.81, kept promises worth ₦1,053,032.19 (24.7% of the money)
kept rate by how many promises the loan had already produced
promise number 1 80 made, 21 kept (26.2%)
promise number 2 40 made, 8 kept (20.0%)
promise number 3 16 made, 2 kept (12.5%)
promise number 4 or more 8 made, 0 kept ( 0.0%)
loans with a promise: 80; with no promise ever kept: 49, which made 95 of the 144 promisesThe overall 21.5% is the Predict’s answer. The 26.2% is the first-promise rate (21 of 80 is 26.25%, printed as 26.2 because of how Python rounds the stored float). Each later promise on the same loan is kept less often.
5. Cost per naira, and the recovery assumption. Save as cost.py. It attaches each action’s cost to the instalment it chased and compares it with what that instalment paid. The last half is a modelled recovery, with its assumptions printed beside the numbers.
import sqlite3
from collections import defaultdict
from datetime import date
db = sqlite3.connect("data/finance.sqlite")
def naira(kobo):
return f"₦{kobo // 100:,}.{kobo % 100:02d}"
total, due = {}, {}
for loan, n, d, t in db.execute("SELECT loan_id, instalment, due_date, total_kobo FROM schedule"):
total[(loan, n)], due[(loan, n)] = t, d
got, cleared = defaultdict(int), {}
for loan, n, paid_at, amount, fee in db.execute(
"SELECT loan_id, instalment, paid_at, amount_kobo, late_fee_kobo FROM repayments ORDER BY paid_at, id"):
got[(loan, n)] += amount - fee
if got[(loan, n)] >= total[(loan, n)] and (loan, n) not in cleared:
cleared[(loan, n)] = paid_at[:10]
spent = defaultdict(int) # what the team spent chasing each instalment
for loan, n, cost in db.execute("SELECT loan_id, instalment, cost_kobo FROM collection_actions"):
spent[(loan, n)] += cost
def band(key):
days = (date.fromisoformat(cleared[key]) - date.fromisoformat(due[key])).days
return "cured in 1-7 days" if days <= 7 else "cured in 8-29 days" if days <= 29 else "cured in 30-89 days"
groups = defaultdict(lambda: [0, 0, 0]) # instalments, kobo collected, kobo spent
for key, cost in spent.items():
g = band(key) if key in cleared else "never cured by the cut-off"
groups[g][0] += 1
groups[g][1] += total[key] if key in cleared else 0
groups[g][2] += cost
print(f"{'chased instalments':<28}{'count':>6}{'collected':>16}{'spent':>14} kobo spent per naira collected")
for g in ("cured in 1-7 days", "cured in 8-29 days", "cured in 30-89 days", "never cured by the cut-off"):
n, col, sp = groups[g]
ratio = f"{sp * 100 / col:8.2f}" if col else " no collection"
print(f"{g:<28}{n:>6}{naira(col):>16}{naira(sp):>14} {ratio}")
n = sum(v[0] for v in groups.values()); col = sum(v[1] for v in groups.values()); sp = sum(v[2] for v in groups.values())
print(f"{'all':<28}{n:>6}{naira(col):>16}{naira(sp):>14} {sp * 100 / col:8.2f}")
# Recovery stage: the book recovers nothing after placement, so this part is a stated ASSUMPTION.
out, = db.execute("""SELECT SUM(l.outstanding_principal_kobo) FROM placements p JOIN loans l ON l.id = p.loan_id""").fetchone()
fee_bps, = db.execute("SELECT MAX(fee_bps) FROM placements").fetchone()
print(f"\nplaced loans: principal outstanding {naira(out)}; agency fee {fee_bps / 100:.0f}% of what it recovers (illustrative)")
print("ASSUMPTION: share of that principal the agency recovers")
for pct in (5, 10, 20):
gross = round(out * pct / 100) # Python's round: exact halves go to the even kobo
fee = round(gross * fee_bps / 10_000)
print(f" recovers {pct:>2}%: gross {naira(gross):>13}, agency fee {naira(fee):>12}, Owoleaf keeps {naira(gross - fee):>13}")
print("ASSUMPTION: a buyer pays this many kobo per naira of principal for the whole placed book")
for price in (4, 8, 12):
print(f" sale at {price:>2} kobo per naira: {naira(out * price // 100)}")python3 cost.pychased instalments count collected spent kobo spent per naira collected
cured in 1-7 days 38 ₦2,661,757.95 ₦3,950.00 0.15
cured in 8-29 days 48 ₦1,670,436.25 ₦23,278.00 1.39
cured in 30-89 days 13 ₦472,987.65 ₦18,460.00 3.90
never cured by the cut-off 44 ₦0.00 ₦163,244.00 no collection
all 143 ₦4,805,181.85 ₦208,932.00 4.35
placed loans: principal outstanding ₦1,730,900.95; agency fee 20% of what it recovers (illustrative)
ASSUMPTION: share of that principal the agency recovers
recovers 5%: gross ₦86,545.05, agency fee ₦17,309.01, Owoleaf keeps ₦69,236.04
recovers 10%: gross ₦173,090.10, agency fee ₦34,618.02, Owoleaf keeps ₦138,472.08
recovers 20%: gross ₦346,180.19, agency fee ₦69,236.04, Owoleaf keeps ₦276,944.15
ASSUMPTION: a buyer pays this many kobo per naira of principal for the whole placed book
sale at 4 kobo per naira: ₦69,236.03
sale at 8 kobo per naira: ₦138,472.07
sale at 12 kobo per naira: ₦207,708.11The total spend, ₦208,932.00, matches step 2. 99 instalments cured and 44 never did; the 44 took ₦163,244.00, 78% of the spend. 143 is fewer than the 177 instalments that were paid late or never (114 + 63). The team chases the oldest unpaid instalment on a loan, so a newer missed instalment has no actions of its own until the older one is paid, and some instalments were paid before any action. The sale at 8 kobo per naira is within a kobo of the 10% agency row: 0.8 × 10% = 8%.
6. Write the contact-policy checker, and run it. Save as policy.py. It applies Owoleaf’s three rules to every action and writes its findings to my_breaches.csv. Read the times as Lagos time: each timestamp carries its +01:00 offset, and fromisoformat keeps it, so .hour is the Lagos hour. Do not open the answer key yet.
import csv
import sqlite3
from collections import Counter, defaultdict
from datetime import datetime
POLICY = {"earliest": 8, "latest": 20, "calls_per_day": 3} # Owoleaf's own contact policy, ILLUSTRATIVE
db = sqlite3.connect("data/finance.sqlite")
db.row_factory = sqlite3.Row
rows = db.execute("SELECT id, loan_id, at, channel, party FROM collection_actions ORDER BY at, id").fetchall()
found = set()
calls_a_day = defaultdict(int)
for r in rows:
when = datetime.fromisoformat(r["at"]) # keeps the +01:00 offset, so .hour is the hour in Lagos
if r["channel"] in ("call", "visit") and not POLICY["earliest"] <= when.hour < POLICY["latest"]:
found.add(("outside_hours", r["loan_id"], r["at"]))
if r["party"] != "borrower":
found.add(("third_party_contact", r["loan_id"], r["at"]))
if r["channel"] == "call":
calls_a_day[(r["loan_id"], when.date().isoformat())] += 1
for (loan, day), n in calls_a_day.items():
if n > POLICY["calls_per_day"]:
found.add(("too_many_calls", loan, day))
print(len(rows), "actions checked")
for kind, n in sorted(Counter(k for k, _, _ in found).items()):
print(f" {kind:<20}{n:>3}")
with open("my_breaches.csv", "w", newline="") as f:
w = csv.writer(f)
w.writerow(["kind", "loan_id", "at"])
w.writerows(sorted(found))
print("wrote my_breaches.csv:", len(found), "findings")python3 policy.py1809 actions checked
outside_hours 19
third_party_contact 20
too_many_calls 8
wrote my_breaches.csv: 47 findingsYou have 47 findings and have not seen the answer. too_many_calls is one finding per loan per day (more than three calls). The checker is a control only if you could say, before looking, whether you trust it. Which of the three rules could it get wrong by reading a time zone or a date boundary, and which by the definition of “a call”?
7. Now open the answer key, and compare. Save as compare.py. It loads your findings and the answer key, which lists every breach of the policy in the data, and lists the differences both ways.
import csv
def load(path):
with open(path, newline="") as f:
return {tuple(r) for r in list(csv.reader(f))[1:]}
mine = load("my_breaches.csv")
key = load("data/answers/collections_breaches.csv")
print(f"mine {len(mine)}, key {len(key)}, in both {len(mine & key)}")
print("in the key, not found by me:", sorted(key - mine) or "none")
print("found by me, not in the key:", sorted(mine - key) or "none")python3 compare.pymine 47, key 47, in both 47
in the key, not found by me: none
found by me, not in the key: noneYour checker and the key agree on all 47: 19 outside hours, 20 third-party contacts and 8 loan-days with more than three calls. That is the result you hoped for, and it is weaker evidence than it looks. Both apply the same three rules to the same table, so they would share a blind spot if both misread a time zone or a day boundary, and neither sees consent or what was said. Agreement shows the code does what the policy says. It does not show the policy is right. Read the next two steps with that in mind.
8. Who, and what happens after a dispute. Save as agents.py and disputes.py. The first counts flagged calls by collector. The second looks at what the team did on a loan after a call that recorded a dispute or a wrong_number.
import sqlite3
from collections import defaultdict
from datetime import datetime
db = sqlite3.connect("data/finance.sqlite")
calls = defaultdict(int)
flagged = defaultdict(int)
for agent, at, party in db.execute("SELECT agent, at, party FROM collection_actions WHERE channel = 'call'"):
calls[agent] += 1
hour = datetime.fromisoformat(at).hour
if party != "borrower" or not 8 <= hour < 20:
flagged[agent] += 1
print(f"{'collector':<10}{'calls':>6}{'flagged':>9}{'share':>8}")
for agent in sorted(calls):
print(f"{agent:<10}{calls[agent]:>6}{flagged[agent]:>9}{flagged[agent] / calls[agent]:>8.1%}")import sqlite3
db = sqlite3.connect("data/finance.sqlite")
for outcome in ("dispute", "wrong_number"):
loans = db.execute("SELECT COUNT(DISTINCT loan_id) FROM collection_actions WHERE outcome = ?", (outcome,)).fetchone()[0]
# actions on the same loan after the first time the outcome was recorded
later, calls, loans_after = db.execute("""
SELECT COUNT(*), COALESCE(SUM(b.channel = 'call'), 0), COUNT(DISTINCT b.loan_id)
FROM (SELECT loan_id, MIN(at) AS first FROM collection_actions WHERE outcome = ? GROUP BY loan_id) a
JOIN collection_actions b ON b.loan_id = a.loan_id AND b.at > a.first""", (outcome,)).fetchone()
print(f"{outcome:<13} on {loans} loans; {loans_after} of them were chased again: {later} more actions, {calls} of them calls")python3 agents.py
python3 disputes.pycollector calls flagged share
COL01 95 1 1.1%
COL02 100 4 4.0%
COL03 95 2 2.1%
COL04 92 3 3.3%
COL05 125 22 17.6%
COL06 103 2 1.9%
COL07 109 2 1.8%
COL08 111 2 1.8%
dispute on 27 loans; 24 of them were chased again: 203 more actions, 118 of them calls
wrong_number on 22 loans; 20 of them were chased again: 255 more actions, 155 of them callsCOL05 has 22 of the 38 flagged calls (a call that is both at night and to a third party is counted once) and a share of 17.6% where every other collector is between 1.1% and 4.0%. That is the collector in the Why: the one with the most calls. The second pair of lines is a finding about the generator and not about real borrowers, which never pauses a loan after a dispute or a wrong number. A real policy would. Ask what rule you would write, and what field the table would need to enforce it.
Read the Lagos clock as UTC and watch the checker lie. The mistake is a one-line change: convert each timestamp to UTC before taking the hour. Save as utc.py and run it.
import sqlite3
from datetime import datetime, timezone
db = sqlite3.connect("data/finance.sqlite")
wrong = []
for loan, at, channel in db.execute("SELECT loan_id, at, channel FROM collection_actions WHERE channel IN ('call', 'visit')"):
hour = datetime.fromisoformat(at).astimezone(timezone.utc).hour # the mistake: Lagos clock read as UTC
local = datetime.fromisoformat(at).hour
if not 8 <= hour < 20 and 8 <= local < 20:
wrong.append((loan, at))
print(len(wrong), "calls or visits flagged as outside hours that were inside them")
for w in wrong[:3]:
print(" ", w)python3 utc.pyIt prints 72 calls and visits flagged as outside hours that were inside them, starting with L000078 at 08:05 on 6 May, L000280 at 08:04 on 10 May and L000255 at 08:13 on 11 May: every call placed between 08:00 and 08:59 Lagos time reads as 07:xx in UTC. A checker with 72 false alarms on top of 19 true ones teaches its users to ignore it, and they miss the real breaches. The data was right. Write down where in your own pipeline a time zone could be dropped, and which of the 19 you would still trust.
Template
# Collections strategy: <lender>, <bucket name> (<first> to <last> days past due), <date>
Prepared by <analyst>, collections. Signed by <head of collections>.
## 1. The bucket
Who is in it, how many instalments, how old the data is, and the cut-off date used.
## 2. Treatment by days past due
| Days past due | Action | Channel | Done by | Cost per action | What it is for |
## 3. Contact rules and conduct limits
Hours, calls a day, who may be contacted, what pauses the chase. Write each as a check on the action log, and say who runs it and how often. Mark each limit as your own policy or as a rule, and for a rule give its source and date.
## 4. Script
Must say: <amount, due date, how to pay, how to ask for a plan>. Must never say: <threats you cannot carry out, anything to a third party>. If the borrower disputes or says wrong number: <what happens>.
## 5. Measured cure
Mature instalments reached: <n>. Cured: <n> (<%>). Rolled on: <n> (<%>). Cost per naira collected, with and without the spend that bought nothing. Promises: kept rate by promise number.
## 6. When an account moves on
Leaves the bucket cured, on a plan, paused for a dispute, or rolled to <next stage> at <day>. Who decides, and what the next stage inherits.
## 7. How this could be wrong
<one way, and what would show it>
## 8. Decision and sign-off
Decision needed: <what, from whom, by when>. Out of scope: <what this strategy does not cover>.
Prepared <name, date>. Approved <name, date>. WORKED EXAMPLE
A collections analyst at Owoleaf writes this for each bucket; Oghogho, who runs collections, signs it. This one is the late bucket, 30 to 89 days past due, at the lab’s cut-off.
Bucket. 76 instalments reached day 30. The late stage held 479 actions (374 calls, 93 letters, 12 visits) costing ₦138,600.00, 66.3% of the ₦208,932.00 spent.
Treatment. Day 30: a letter (₦500). Days 30 to 59: one call a week to find out why the borrower has not paid,. Day 60: a second letter. Days 60 to 89: a field visit (₦3,000) only where the calls reached nobody.
Conduct. Owoleaf’s own policy, not a rule (the chapter could not read the FCCPC or CBN clauses): no call or visit before 08:00 or after 20:00 Lagos time, no more than three calls to a borrower in a day, nobody but the borrower. The checker found 47 breaches in 1,809 actions. COL05 had 22 flagged of 125 calls (17.6%), the others 1.1% to 4.0%, so COL05’s log is read weekly.
Script. It states the amount, date and how to pay, and asks why. It never threatens court action not yet started. A dispute or wrong number stops chasing until someone has looked: in the lab, 24 of 27 dispute loans were chased again.
Cure. Of 55 mature instalments that reached day 30, 11 cured (20.0%) and 44 rolled on (80.0%). Instalments cured in 30 to 89 days cost 3.90 kobo of spend for every naira collected, against 0.15 kobo in the first week. First promises were kept 26.2% of the time and fourth or later 0 of 8, so after a third promise the borrower is offered a plan.
Moves on. At day 90 the account goes to the agency or a sale.
Could be wrong. The 20.0% rests on 55 instalments from one generated book. A cure rate far from it on the next 55 would show it.
Decision. Oghogho is asked to approve the treatment, the one-call-a-week rhythm and the third-promise rule. Early-stage messages and the agency contract are out of scope.
Now you
You are the collections analyst at Owoleaf a month later, and Oghogho signs what you write. Write the strategy for the early bucket, 1 to 29 days past due. Mark each conduct limit as your own policy or as a rule with its source. Use the lab’s numbers: the early stage in step 2 (1,330 actions costing ₦70,332.00, as SMS, calls and pushes), the mature cure rate in step 3, the first two rows of cost per naira in step 5, and your own policy checker’s findings from step 6, filtered to early-stage actions if you can. Decide which channels go on which days, whether a call belongs in this bucket at all, what the message says, how a dispute is handled, and the day an account moves to the late bucket. State what the lab cannot tell you, such as how many of these borrowers would have paid with no contact. Oghogho reads it to decide whether early-stage calls continue or give way to messages before the next quarter’s staffing.
Self-check
Oghogho at Owoleaf (200 people) renews the contract with the Ibadan agency. It keeps 20% of what it recovers, and Owoleaf has no record of its calls after placement. Last quarter's best recovery came from the collector with the most calls to employers and after dark. Avwerosuo, who runs the agency, offers a flat 20% again. Oghogho must choose the terms before the next batch of placements.
- DOC Digital lending: FCCPC tackles abuses, issues landmark regulations Federal Competition and Consumer Protection Commission, 2025
The Commission's own release on the 2025 Regulations. Read what it says the rules are for, including abusive loan recovery and harassment. It is a press release and not the text, so use it to find the Regulations, then read those.
- DOC Digital, Electronic, Online or Non-Traditional Consumer Lending Regulations (a copy of the text) Federal Competition and Consumer Protection Commission (copy), 2025
A copy of the Regulations' text hosted outside the FCCPC's own site, so a labelled third-party copy. This chapter could not open it. Read the parts on debt recovery and on contacting third parties, and check that the copy matches the Commission's own version before you cite it.
- DOC CBN Consumer Protection Regulations Central Bank of Nigeria, 2019
The CBN's regulations for the institutions it supervises. Read the debt-recovery provisions and check whether the notice and agent-liability points in this chapter are there. They rest on search summaries. Skip account opening on a first pass.
- DOC Exposure draft: Revised Consumer Protection Regulations 2.0 Central Bank of Nigeria
The CBN's draft of the revised regulations. It is a draft, so check whether it was adopted. Read the debt-recovery section for the notice and agent-liability points.
- POST Unpacking the New DEON Consumer Lending Guidelines 2025 (Aluko and Oyebode) Aluko and Oyebode, 2025
A law firm's commentary on the Guidelines that accompany the Regulations. It is commentary and not the rule: use it to find the obligations that touch collections, then read them in the Guidelines themselves.
- POST Demystifying DEON: your essential guide to the FCCPC's latest lending rules Mondaq (law-firm article), 2025
A law-firm analysis (commentary) that this chapter used for the point on recovery agents and the effective date. Read it beside the FCCPC's release and note where they disagree on when the Regulations took effect.
- DOC Draft Guidelines on Responsible Business Conduct Central Bank of Nigeria, 2019
A 2019 CBN draft that a search summary quotes for the 8.00pm to 8.00am contact limit. This chapter could not open it. It is a draft, so check whether the limit appears in any rule in force.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.