SAM quarterly return: short-term policies and premiums

Insurance South Africa

Works out sheets M1.1S and M2.1S of the SAM quarterly return, the number of policies and the premiums written and earned for direct business, from a short-term insurer’s policy listings. It checks each policy’s product, term, status, dates and premiums, that the movements explain the change from the start of the quarter to the end, and that the start matches last quarter’s end.

From the Prudential Authority’s Quarterly Solo Quantitative Reporting Template v3, sheets M1.1S and M2.1S, and the formula for the end of the quarter on M1.1S

SAM quarterly return: short-term policies and premiums
Checks, a products table, last quarter’s figures, two fictional policy listings, test listings and a pipeline snapshot. Zip, 85 KB.
Download the template

See it in Quantemplate

The pipeline

The SAM short-term policies and premiums pipeline in Quantemplate: all 13 stages listed, from Read policies to M1.1S and M2.1S, with link lines between them. The test run’s Outputs tab lists its two outputs: Policies checked with 875 rows and M1.1S and M2.1S with 19.

The test run’s checks

Part of the validation report for the two test policy listings, in the Check policies stage. The checks that a policy number is given, that the product is in the products dataset and is direct business, and that the policy term, in-force flags, movement code, quarter end and movement date are valid each fail 1 row. The check that each policy number appears once fails 2, the duplicate’s two rows. The checks that a movement falls in the quarter, that a new policy or transfer in wasn’t in force at the start but is at the end, and that a cancelled policy or transfer out was in force at the start but isn’t at the end each warn on 1.

The M1.1S and M2.1S output

The first 9 of the 19 rows of the M1.1S and M2.1S output from the test run, with a profile of each column above them. Each row is a line of business and policy term, such as Liability annual or Agriculture term, with its name, template row, the quarter end 30 September 2026, and its policies at the start, new policies, portfolio transfers in, cancelled existing and new policies, portfolio transfers out and policies at the end.

What it checks

19 rules 11 Fail 8 Warning

A rule set to Fail marks its rows as failed, and any failure blocks Auto Export if you set it up. Warnings are only reported. Validation never removes a row. Every rule and its formula is listed in VALIDATIONS.md in the download.

How the pipeline works

  1. Stages 1–2 Read policies Remove blank rows, detect the header, add each file’s name and stack the listings
  2. Stages 3–6 Products and counts Match each policy to its product and line of business, and count the rows for each policy number
  3. Stages 7–8 Check policies Work out each policy’s share of every M1.1S and M2.1S column, and run the 17 policy checks. Output: every policy
  4. Stages 9–11 Movements Total the policies by line of business and policy term, and bring in last quarter’s figures
  5. Stages 12–13 M1.1S and M2.1S Check that the movements explain the end of the quarter and that the start matches last quarter, and run the 2 total checks. Output: one row per line of business and policy term, with premiums in R’000

The policy listing’s columns

Each policy administration system gives a policy listing for the quarter as a CSV file, with one row per policy. A policy number appears once across all the files.

Column
What it holds
Policy Number
The policy’s number
Product Code
Your product code, as in the products dataset
Policy Term
ANNUAL, MONTHLY or TERM, as you classify the policy
Quarter End
The last day of the quarter, as yyyy-mm-dd, such as 2026-09-30
In Force at Start
Y if the policy was in force at the start of the quarter, otherwise N
Movement
What changed the policy in the quarter, as one of the codes below. Blank for no movement, including a renewal
Movement Date
The date of the movement, as yyyy-mm-dd. For CANCELLED NEW, the date it was cancelled
In Force at End
Y if the policy is in force at the end of the quarter, otherwise N
Gross Written Premium
Premium written on the policy in the quarter, in rand. A refund is negative
Gross Earned Premium
Premium earned on the policy in the quarter, in rand
Reinsurance Written Premium
The part of the written premium ceded to reinsurers, in rand. Blank if none
Reinsurance Earned Premium
The part of the earned premium ceded to reinsurers, in rand. Blank if none

Each movement code counts towards a column of M1.1S. Codes and the Y and N flags can be in any case: the pipeline trims them and puts them in capitals.

Movement
Column on M1.1S
NEW
New
TRANSFER IN
Portfolio Transfers In
CANCELLED
Cancelled - Existing Policies: a policy in force at the start that ended in the quarter for any reason, including expiry and non-renewal
CANCELLED NEW
New, and Cancelled - New Policies: a policy taken out and cancelled in the quarter
TRANSFER OUT
Portfolio Transfers Out

What’s in the download

The PA’s quarterly template isn’t included. Download the current version from the PA’s insurer returns page.

Build it

  1. Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
  2. With Claude in Chrome signed in to Quantemplate, ask Claude Code:
    Build the SAM short-term policies and premiums pipeline from the sam-short-term-policies folder. Test it with the test policy listings and the clean ones and compare the results with the expected ones.
  3. Claude creates the products and previous quarter datasets, uploads the two test listings, builds the 13 stages and checks the test listings and the clean ones. This takes around 3 minutes.

The agent builds through the Quantemplate app’s own API in your browser. That API isn’t published, so if a release changes it, the build stops and tells you what went wrong. Review what the agent builds before you rely on it.

Using your own policy data

Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.

Limits