Two regulations, one data problem
Solvency II and IFRS 17 answer two different questions about the same policies. The first asks how much capital an insurer must hold to stay solvent; the second asks how insurance contracts are accounted for in the financial statements. For whoever builds the platform the difference matters less than what they have in common: both start from the same contracts and the same cash flows, both discount, both demand that you can rebuild a figure published months later. The engineer's job is not to be the actuary: it is to guarantee that the data are one, traceable and reproducible.
A note on method, because the domain is regulated. You will find no advice and no market figures here: every regulatory reference is checked against the official text with article and consultation date, and what I could not read was left out. The calculations run on synthetic data with a fixed seed and are didactic models: they show the structure of the calculation, not the result an insurer must declare. For the responsibility of an official figure you need the actuarial function and compliance. If you come from the domain side, the first article of the series explains the actors and the products.
What Solvency II asks for, article by article
Directive 2009/138/EC is the base text. For a platform builder the provisions that matter are few, and each produces a different technical object.
| Provision | What it establishes | Technical object that follows |
|---|---|---|
| Article 77 | technical provisions = best estimate + risk margin; the best estimate is the probability-weighted average of future cash flows, discounted with the relevant risk-free interest rate term structure | cash-flow projection by line and year, rate curve |
| Article 101 | the Solvency Capital Requirement (SCR) is the value-at-risk of the basic own funds at a 99.5% confidence level over one year | shock calculation and risk aggregation |
| Article 45 | every undertaking carries out its own risk and solvency assessment (ORSA) | scenarios, assumptions and traced reports |
| Article 51 | annual publication of the report on solvency and financial condition | public reporting data, consistent with what is sent to the authority |
The table says where the rule becomes software. Article 77 is a pipeline problem: claims data, development pattern, curve. Article 101 is a calculation problem: the rule asks for 99.5% over one year, not for how to compute it, which for the standard formula lives in the delegated acts. Articles 45 and 51 are problems of traceability: you must be able to say which data, which assumptions and which version of the code produced a figure. The directive was amended by Directive (EU) 2025/2 (published on 8 January 2025), which among other things introduces the classification of small and non-complex undertakings and, from 30 January 2027, a cost-of-capital rate presumed at 4.75%: it is worth knowing that the rules you write code for today already have a date of change.
The best estimate: from the claims triangle to the present value
For property and casualty, the projection of future payments often starts from the development triangle: for each accident year, the cumulative payments after one, two, three years. The chain-ladder method measures by how much, on average, the cumulative amount grows from one year to the next (the development factors), and applies that to the cells you do not yet know. Take accident year 2025: today it has paid 40% of what it will pay, and the factors tell you how to reach the rest. The listing generates a synthetic triangle with a known pattern plus 2% noise, estimates the factors, projects, and discounts with a rate curve made up for the example.
import numpy as np
# SYNTHETIC triangle of cumulative payments (thousands of euro), accident years 2021-2025,
# observed at the end of 2025. I generate it from a known development pattern + a little noise.
SCHEMA = np.array([0.40, 0.70, 0.88, 0.96, 1.00]) # cumulative share paid after 1..5 years
FINALI = np.array([10_000, 10_800, 11_500, 12_200, 13_000.0])
ANNI = [2021, 2022, 2023, 2024, 2025]
CURVA = {1: 0.020, 2: 0.022, 3: 0.024, 4: 0.025} # SYNTHETIC spot rates, not an official curve
def triangolo(seme: int = 4) -> np.ndarray:
rng = np.random.default_rng(seme)
n = len(ANNI)
T = np.full((n, n), np.nan)
for i in range(n):
for j in range(n - i): # only the cells of the past are observed
T[i, j] = FINALI[i] * SCHEMA[j] * rng.lognormal(0, 0.02)
return T
def fattori_di_sviluppo(T: np.ndarray) -> np.ndarray:
n = T.shape[1]
return np.array([np.nansum(T[: n - j - 1, j + 1]) / np.nansum(T[: n - j - 1, j]) for j in range(n - 1)])
def proietta(T: np.ndarray, f: np.ndarray) -> np.ndarray:
P = T.copy()
n = T.shape[1]
for i in range(n):
for j in range(n - i, n):
P[i, j] = P[i, j - 1] * f[j - 1] # tail = 1: an assumption, not data
return P
def flussi_futuri(P: np.ndarray, T: np.ndarray) -> dict:
"""Expected incremental payments per calendar year (from 2026), undiscounted."""
n = P.shape[1]
flussi = {}
for i in range(n):
for j in range(n - i, n):
anno = ANNI[i] + j
flussi[anno] = flussi.get(anno, 0.0) + (P[i, j] - P[i, j - 1])
return flussi
def valore_attuale(flussi: dict, ultimo_anno: int = 2025) -> float:
return sum(v / (1 + CURVA[a - ultimo_anno]) ** (a - ultimo_anno) for a, v in flussi.items())
if __name__ == "__main__":
T = triangolo()
f = fattori_di_sviluppo(T)
P = proietta(T, f)
flussi = flussi_futuri(P, T)
print("development factors:", np.round(f, 3))
print("undiscounted reserve:", round(sum(flussi.values())))
for anno, v in sorted(flussi.items()):
print(f" expected payments {anno}: {v:>8.0f}")
print("present value (claims BEL):", round(valore_attuale(flussi)))
# Output:
# development factors: [1.75 1.29 1.061 0.995]
# undiscounted reserve: 10639
# expected payments 2026: 6878
# expected payments 2027: 3188
# expected payments 2028: 635
# expected payments 2029: -63
# present value (claims BEL): 10330
The estimated factors are 1.75, 1.29, 1.061 and 0.995. The first three are close to those of the pattern (0.70/0.40 = 1.75; 0.88/0.70 = 1.257 against the estimated 1.29, because of noise). The last is the most instructive: 0.995 is below 1 and produces a negative payment of 63 in 2029, that is, a recovery that does not exist in the pattern. It comes from a single observed point, and with one observation the noise carries all the weight: in practice the actuary judges it, smooths it or sets it to 1 with a written justification, and your software must let that choice be recorded, not hide it. The undiscounted reserve is 10,639 (thousands of euro) and the present value 10,330: the discount, with a curve between 2.0% and 2.5%, removes 2.9%.
Mind the limits: this is only the best estimate of claims that have already occurred. It does not include the premium provision, expenses, reinsurance recoverables (article 77 wants them computed separately), nor the tail beyond the fifth year, which here is an assumption (factor 1) and not data.
The risk margin: a formula you can read
The second part of the technical provisions is the risk margin, which article 77, paragraph 5, defines as the cost of
providing an amount of eligible own funds equal to the SCR necessary to support the obligations over their lifetime.
Delegated Regulation (EU) 2015/35
turns it into a formula in article 37: RM = CoC × Σ SCR(t) / (1 + r(t+1))^(t+1), summed over all t from
zero, where CoC is the cost-of-capital rate, SCR(t) the solvency capital requirement after t years and r(t+1) the
risk-free rate at t+1 years. In the 2015 text article 39 sets the CoC at 6%. The listing applies the formula with
two values: 6% and the 4.75% that Directive 2025/2 presumes from 2027.
from bel import CURVA, flussi_futuri, fattori_di_sviluppo, proietta, triangolo, valore_attuale
T = triangolo()
flussi = flussi_futuri(proietta(T, fattori_di_sviluppo(T)), T)
bel = valore_attuale(flussi)
# Undiscounted reserve still to be paid at the start of each future year: t = 0 (end of 2025), 1, 2, 3
anni = sorted(flussi)
residuo = [sum(flussi[a] for a in anni[t:]) for t in range(len(anni))]
K_SCR = 0.12 # SIMPLIFYING assumption: SCR(t) = 12% of the remaining reserve. It is not the standard formula.
def margine_di_rischio(coc: float) -> float:
"""RM = CoC * sum over t >= 0 of SCR(t) / (1 + r(t+1))^(t+1), as in art. 37 of delegated regulation 2015/35."""
return coc * sum(K_SCR * residuo[t] / (1 + CURVA[t + 1]) ** (t + 1) for t in range(len(residuo)))
print(f"BEL (claims): {bel:>8.0f}")
for coc in (0.06, 0.0475):
rm = margine_di_rischio(coc)
print(f"CoC {coc:>6.2%}: RM {rm:>6.0f} technical provisions (BEL + RM) {bel + rm:>8.0f}")
print(f"RM / BEL with CoC 6%: {margine_di_rischio(0.06) / bel:.2%}")
# Output:
# BEL (claims): 10330
# CoC 6.00%: RM 104 technical provisions (BEL + RM) 10435
# CoC 4.75%: RM 83 technical provisions (BEL + RM) 10413
# RM / BEL with CoC 6%: 1.01%
The technical provisions come to 10,435 with 6% and 10,413 with 4.75%. The margin falls from 104 to 83, that is, by
20.8%, because it is proportional to the rate: 4.75 divided by 6 is 0.792. The margin weighs about 1% of the best
estimate, but mind why: I assumed SCR(t) = 12% of the remaining reserve so as not to implement the
standard formula, and that 12% is a parameter of mine that moves the result linearly. The useful lesson is another
one: if the cost-of-capital rate changes by law, a well-built system has it as a parameter with a validity date, not
as a constant buried in the code. Whoever wrote it by hand in ten spreadsheets will find out about the change on
the day of delivery.
IFRS 17: the contractual service margin, step by step
The standard, as the IFRS Foundation describes it, applies to periods beginning on or after 1 January 2023, and in the Union it was endorsed by Regulation (EU) 2021/2036, which applies it from the first financial year starting on or after that date. The idea is that a group of contracts is measured as the sum of two things: the fulfilment cash flows (the present value of future cash flows, with the adjustments of paragraph 32) and a contractual service margin (CSM), which paragraph 38 defines as the unearned profit that the entity will recognize as it provides services. Profit, then, is not recognized when the premium is collected: it comes out little by little, as the coverage is provided.
The listing shows two groups of three years. The profitable one collects 1,000 and expects outflows of 250 a year; the onerous one collects 700 for the same outflows. At initial recognition the CSM is the difference between premiums and the present value of the outflows, if positive; if negative, the loss is recognized immediately and the CSM is zero (paragraph 38 refers to the onerous contracts of paragraph 47). Then the CSM evolves as paragraph 44 describes: interest accretes and a share is released to revenue on the basis of coverage units. I simplified: constant coverage units, no risk adjustment, no acquisition costs.
"""A synthetic group of three-year contracts. Amounts in thousands of euro.
Declared simplifications: no risk adjustment for non-financial risk, no acquisition costs,
constant discount rate (the one at the date of initial recognition), constant coverage units."""
TASSO = 0.03
ANNI = 3
def valore_attuale(flussi):
return sum(f / (1 + TASSO) ** t for t, f in enumerate(flussi, start=1))
def rilevazione_iniziale(premi_incassati: float, uscite_attese: list[float]):
"""Fulfilment cash flows = present value of the outflows - premiums (collected up front).
CSM = unearned profit; if the group is onerous, the loss goes to profit or loss immediately."""
fcf = valore_attuale(uscite_attese) - premi_incassati
if fcf <= 0:
return -fcf, 0.0 # positive CSM, no loss
return 0.0, fcf # zero CSM, immediate loss
def evoluzione_csm(csm_iniziale: float):
"""Interest accreted on the CSM and release by coverage unit (one per year)."""
righe, csm = [], csm_iniziale
for anno in range(1, ANNI + 1):
apertura = csm
interessi = apertura * TASSO
unita_residue = ANNI - anno + 1
rilascio = (apertura + interessi) / unita_residue # the year's share over the remaining coverage units
csm = apertura + interessi - rilascio
righe.append((anno, apertura, interessi, rilascio, csm))
return righe
for nome, premi in (("profitable", 1_000.0), ("onerous", 700.0)):
uscite = [250.0, 250.0, 250.0]
csm, perdita = rilevazione_iniziale(premi, uscite)
print(f"{nome}: premiums {premi:.0f}, present value of outflows {valore_attuale(uscite):.1f} -> CSM {csm:.1f}, immediate loss {perdita:.1f}")
if csm:
print("year opening interest release closing")
for a, ap, i, r, ch in evoluzione_csm(csm):
print(f"{a:>4} {ap:>8.1f} {i:>9.1f} {r:>8.1f} {ch:>8.1f}")
# Output:
# profitable: premiums 1000, present value of outflows 707.2 -> CSM 292.8, immediate loss 0.0
# year opening interest release closing
# 1 292.8 8.8 100.5 201.1
# 2 201.1 6.0 103.6 103.6
# 3 103.6 3.1 106.7 0.0
# onerous: premiums 700, present value of outflows 707.2 -> CSM 0.0, immediate loss 7.2
For the profitable group the present value of the outflows is 707.2 and the initial CSM 292.8. The profit does not disappear and is not collected in one go: it is released as 100.5, 103.6 and 106.7, with a growth due to the interest accreted on the remaining balance, and the CSM reaches zero at the end of the third year. The onerous group, instead, shows an immediate loss of 7.2 and no CSM. For a platform builder this means that the relevant datum is not the premium but the series of cash flows and coverage units per group, computed at every closing.
Three modeling choices change the data structure. Paragraph 22 forbids putting in the same group contracts issued more than one year apart (the annual cohorts): article 2, paragraph 2, of Regulation (EU) 2021/2036 allows not applying it to certain groups with direct participation features and to certain investment contracts, and article 3 provides for a review of the exemption by 31 December 2027. The premium allocation approach (paragraph 53) is permitted if the simplification does not differ materially from the general model, or if the coverage period of each contract does not exceed one year. Contracts with direct participation features (paragraphs B101-B118) have their own rules for the CSM. An annual motor policy and a life policy with profit participation therefore end up in different calculation paths.
Shared data: a history that is not rewritten
Here is the advantage of designing the two regulations together: contracts, claims and provisions are the same, only the measurement rules change. Solvency II discounts with the risk-free interest rate term structure (article 77); IFRS 17 specifies its own discount rates (paragraph B72). The curves are different by construction, so the pipeline does not share the number, it shares the flows and applies to each regime its own level of measurement. I have no reliable figure for the saving that follows, and I do not write a generic percentage.
The property that the regulator and the auditor ask of this data is reconstructability. The cheapest remedy is an
append-only store: every correction is a new row with its recording time, no UPDATE. The listing uses
SQLite to show it; it is half of a bitemporal model, because it tracks system time (when the datum came in)
but not valid time (the date it refers to).
import sqlite3
db = sqlite3.connect(":memory:")
db.executescript("""
CREATE TABLE riserva_sinistro (
sinistro_id TEXT NOT NULL,
importo REAL NOT NULL,
registrato_il TEXT NOT NULL, -- when the data entered the system (system time)
PRIMARY KEY (sinistro_id, registrato_il) -- no UPDATE: every correction is a new row
);
INSERT INTO riserva_sinistro VALUES
('S1', 1000, '2026-01-10'), ('S2', 2000, '2026-01-12'), ('S3', 500, '2026-01-20'),
('S2', 2600, '2026-02-15'), -- late adjustment, after the quarter was closed
('S4', 800, '2026-02-18'); -- claim reported late
""")
DOMANDA = """
SELECT COUNT(*), SUM(importo) FROM (
SELECT sinistro_id, importo,
ROW_NUMBER() OVER (PARTITION BY sinistro_id ORDER BY registrato_il DESC) AS rn
FROM riserva_sinistro WHERE registrato_il <= ?
) WHERE rn = 1
"""
for data in ("2026-01-31", "2026-02-28"):
n, totale = db.execute(DOMANDA, (data,)).fetchone()
print(f"reserves according to the data known on {data}: {n} claims, total {totale:.0f}")
# Output:
# reserves according to the data known on 2026-01-31: 3 claims, total 3500
# reserves according to the data known on 2026-02-28: 4 claims, total 4900
With a late adjustment of claim S2 (from 2,000 to 2,600) and a claim S4 reported late, the question "what were the
reserves worth according to the data known at the end of January?" answers with 3 claims and 3,500, even though
today the data would say 4,900. The window ROW_NUMBER() OVER (PARTITION BY ...) picks, for each claim,
the last version recorded up to the requested date. Without this structure, reproducing the figure of a quarter
already sent means rebuilding it by hand, and that is the moment when you find out it does not match.
Transmission to the authority: what this article does not do
The quantitative reporting templates (QRT) are transmitted in a structured format. On its page about DPM and XBRL, EIOPA states that the DPM and XBRL methodology are the standard for the transmission of data between EIOPA and the national authorities, and it distributes the taxonomies. I do not generate a sample XBRL file: a valid document requires the official taxonomy, and one written by hand with invented fact names would be a didactic fake. The practical advice is to start from the published taxonomy and use a tool that loads it, instead of building the format by hand. The channel and the format toward the national authority are read in its instructions.
What you can do in your pipeline, and what prevents the most common errors, are consistency checks before sending:
- the total of the reserves per line of business matches the total of the trial balance;
- no contract appears in two recognition groups, or in none;
- the reserves reproduced "as known on" the closing day match those already transmitted;
- every figure published in the annual report derives from the same data sent to the authority.
These are reconciliation checks, not calculation checks: they cost little and catch the most embarrassing category of error, the one in which two official documents of the same period report two different numbers. The thread running through the other articles is the same traceability: that of integration with partners, where every message has an identifier, that of the automated decisions on claims, where every step has a written reason, and that of fraud detection, where the outcome of the investigation must flow back into the system.
What you can do now
You can link every obligation to a technical object: article 77 to the cash-flow pipeline and the curve, article 101 to the SCR calculation, articles 45 and 51 to traceability, and IFRS 17 to the series of cash flows and coverage units per group. You have seen a best estimate with chain-ladder (and a suspicious factor to judge), a risk margin according to the formula of article 37 with a cost-of-capital rate that changes by law in 2027, and a CSM that releases profit over three years while leaving an immediate loss on the onerous contract. You also know where the code stops: the official numbers belong to the actuaries, and transmission starts from the EIOPA taxonomy. The next step is to decide, with the actuarial function, which parameters live as data with a validity date and which in the code.
Frequently asked questions
What is the difference between Solvency II and IFRS 17?
Solvency II (Directive 2009/138/EC) is about solvency: it establishes how much capital an insurer must hold, with the SCR calibrated at 99.5% over one year. IFRS 17 is about the accounting of insurance contracts: it measures groups of contracts with the fulfilment cash flows plus a contractual service margin, which is released as coverage is provided.
How is the Solvency II risk margin calculated?
With the formula of article 37 of Delegated Regulation 2015/35: the cost-of-capital rate multiplies the sum of the discounted future SCRs. In the 2015 text the rate is 6% (article 39); Directive (EU) 2025/2 presumes 4.75% from 30 January 2027. Always check the consolidated text in force.
Why do you need an append-only history for this data?
Because claims data are adjusted after a period closes, and the figure already transmitted must stay reproducible. A store in which every correction is a row with its recording time lets you answer "what were the reserves worth according to the data known on day X" without manual reconstruction.
Sources
- Directive 2009/138/EC (Solvency II), articles 45, 51, 77 and 101, on EUR-Lex - technical provisions, SCR at 99.5%, ORSA and public report, consulted on 2026-11-12
- Delegated Regulation (EU) 2015/35, articles 37 and 39, text of the Official Journal of 17.1.2015 - risk margin formula and the cost-of-capital rate at 6% in the original text, consulted on 2026-11-12
- Directive (EU) 2025/2, on EUR-Lex - amendment of Directive 2009/138/EC: cost-of-capital rate presumed at 4.75% from 30 January 2027, consulted on 2026-11-12
- Regulation (EU) 2021/2036 with the IFRS 17 annex, on EUR-Lex - application from 2023, paragraphs 22, 32, 38, 44, 53 and the annual cohorts exemption of article 2, consulted on 2026-11-12
- IFRS Foundation, IFRS 17 Insurance Contracts - effective date and key principles of the standard, consulted on 2026-11-12
- EIOPA, Supervisory reporting - DPM and XBRL - DPM and XBRL as the standard for transmitting data between EIOPA and national authorities, consulted on 2026-11-12
The listings were run with Python 3.14 and NumPy 2.3.5 (SQLite from the standard library), twice in a row with the same output; the data are synthetic with a fixed seed and the parameters (rate curve, SCR/reserve ratio, group cash flows) are mine. The delegated regulation is cited in its original 2015 text: before using a number in a filing, check the consolidated text in force with the actuarial function and compliance.
Commenti
Caricamento commenti...
Sign in to comment