Skip to content

Premium calculators: testing tariffs and rules before a campaign

B2Bnetwork team · · 6 min

IT in insurance

In brief

A tariff in a premium calculator is tested by comparing it with the actuary's reference model on a large, deliberately chosen sample of customer profiles, not with a few manual examples. On top of that come decision tables for underwriting rules, boundary values for rating factors, checks of the tariff's effective dates and price consistency across all channels. Before a campaign you also need to check performance, because the calculator handles many times more requests than policies sold.

What a tariff is made of

A tariff is the set of rules by which the system calculates the premium. In motor and property insurance it usually consists of:

  • a base rate for the product and coverage option;
  • rating factors, for example driver age, place of residence, vehicle parameters, claims history, sum insured;
  • relativities assigned to the bands of each factor;
  • discounts and loadings: package, loyalty, single payment;
  • limits: minimum and maximum premium, rounding;
  • underwriting rules: decline, referral to an underwriter, additional data required.

Each of these is a place for a defect. A relativity shifted by one band for drivers aged 25, discounts applied in the wrong order, or rounding before rather than after the minimum premium is applied produce differences that turn into real money across thousands of policies.

Tariff testing techniques

The ISTQB Foundation Level syllabus describes techniques that fit tariffs well:

TechniqueWhat it covers in a tariffExample
Equivalence partitioningRating factor bandsDriver age in bands, one profile from each
Boundary value analysisBand limitsAge 25 and 26, engine capacity at the edge of a class
Decision tablesUnderwriting and discount rulesCombinations of claims history, age and vehicle type
Combinatorial testingMany factors at oncePairs of factor values instead of every combination

The techniques alone do not tell you which premium is correct, though. For that you need a test oracle, meaning an independent source of the expected result.

The reference model as the oracle

The best oracle is the model in which the actuary designed the tariff, usually a spreadsheet or a script. The test runs the same set of profiles through the model and through the calculator and compares the results.

  1. Generate a sample of profiles: all equivalence classes, all boundary values and a random sample of combinations, in practice from thousands to hundreds of thousands of profiles.
  2. Calculate the premium in both places: in the actuary's model and through the calculator API, with the same coverage start date.
  3. Compare with a tolerance: a difference above an agreed threshold, for example one cent after rounding, is a discrepancy to explain.
  4. Classify discrepancies: a defect in the system, an error in the model, an unclear specification. Each ends with a decision and a fix on the right side.

The second test is an impact analysis of the tariff change. The same portfolio of profiles is rated under the old and the new tariff, and the distribution of premium changes is shown to the business before go-live. An unexpected increase for one customer group often reveals a configuration error that individual cases do not show. Break the distribution down by sales channel, region and age group, because that is where the business will most quickly spot a result that contradicts the intent of the tariff.

Dates, channels and prohibited factors

Many tariff defects are not about the amount itself but about which tariff version was used. Tests should check:

  • the effective date: whether the sale date or the coverage start date decides, and what happens to a quote issued before the tariff change and bound after it;
  • channel consistency: the website, the agent app and the API for comparison sites and bancassurance return the same premium for the same profile;
  • renewals: whether a renewing policy gets the new tariff and the correct loyalty discount;
  • prohibited factors: since December 21, 2012, following the Court of Justice of the EU ruling in Test-Achats (C-236/09), sex may not lead to differences in premiums and benefits. A simple test: two profiles that differ only by sex must get the same premium.

When an AI system calculates premiums in life or health insurance, the AI Act comes into play: Annex III lists risk assessment and pricing in relation to natural persons for these insurance types among high-risk systems. The classification is covered in the article on AI Act risk categories.

The tariff as versioned configuration

In many systems the tariff is not code but tables of relativities in a product configurator or a database. That is convenient for the business but dangerous when a change can be made directly in production. A safer process looks like this:

  1. Every tariff version has a number and an effective date and goes into a repository together with a description of the change.
  2. The change is reviewed by a second person, ideally an actuary and an analyst, before it reaches the test environment.
  3. An automated test suite compares the results with the reference model and with the previous tariff version.
  4. The deployment is the same package that passed testing, without retyping tables between environments.
  5. The previous version stays in the system, because policies sold under it are serviced until the end of the coverage period.

This process answers the most common question after a tariff defect: which version calculated the premium for this policy and who approved it. Without a version number on every calculation, answering it means reconstructing history by hand.

Performance before a campaign

An advertising campaign or the start of a partnership with a comparison site can multiply calculator traffic within hours. Comparison sites request a premium for every user who enters data, whether or not they buy a policy. A performance test should therefore reproduce the real ratio of quotes to sales and check the dependencies: reference data services, the claims history database, the payment system. Preparing such a test is covered in the article on performance testing before a sales peak, and the course of a project in performance testing of a calculator before a motor insurance campaign.

Run the tariff test suite on every change, not only before a big campaign. How to maintain it is covered in the text on regression testing at an insurer.

Questions and answers

How do you test a new insurance tariff?

Compare the calculator's results with the actuary's reference model on a large sample of profiles covering all rating factor classes and their boundary values. Add decision tables for underwriting rules and tests of effective dates and channel consistency. Finish with an impact analysis: the same portfolio under the old and new tariff, with the distribution of premium changes for the business to accept.

How many customer profiles does a tariff test need?

Enough to cover every class of every factor, every boundary value and a representative sample of combinations. With a dozen or so factors that is usually thousands of profiles, and when comparing with a reference model even hundreds of thousands, because the test is automated and cheap to run. Manual examples help in understanding the rules but are not enough to accept a tariff.

Can sex affect an insurance premium in the EU?

No. Since December 21, 2012, following the Court of Justice of the EU ruling in Test-Achats, insurers in the EU may not use sex as a factor that leads to differences in premiums and benefits. Testing this is simple: two profiles identical except for sex must get the same premium, including in discount rules and underwriting.

Who should sign off a tariff: testers or actuaries?

Both. The actuary is responsible for the model and the expected results, the testers for making sure the system calculates in line with the model across all channels and edge cases. They resolve discrepancies together, because sometimes the error is in the specification or the model itself rather than in the system.

What it looks like in a project

Changing a policy or claims system? Talk to an engineer who knows insurance products.

Let's talk

Read more: IT in insurance