hospitality.bill-split
Split a restaurant bill evenly, by item or by share, exactly to the penny, with the service charge shared in proportion.
1.0.0
py rs ts
25 tests
money.amount
A currency-tagged monetary amount held in integer minor units.
1.0.2
py rs ts
17 tests
finance.proration
Split an amount into the part used and the part unused over a billing period, losing nothing.
1.0.0
py rs ts
16 tests
validation.uk-postcode
Validate a UK postcode and normalise it to canonical upper case with one space before the inward code.
2.0.0
py rs ts
26 tests
agri.fertiliser-application
Fertiliser product rate (kg/ha and total) to meet N, P2O5 and K2O targets from its analysis, limiting nutrient first.
1.0.0
py rs ts
16 tests
agri.field-area
Field area in square metres, hectares and acres from a boundary polygon of latitude/longitude points.
1.0.0
py rs ts
14 tests
money.split-even
Split an amount into n near-equal parts that add back up to exactly the whole.
1.0.0
py rs ts
13 tests
fleet.mileage-allowance
HMRC approved mileage allowance payments for an employee's own vehicle: tax-free amount, taxable excess or relief.
1.0.2
py rs ts
23 tests
math.exp
e to the power x from + - * / only, so TypeScript, Python and Rust return the same double for the same input.
1.0.1
py rs ts
10 tests
net.ipv6
Parse IPv6 addresses and write them in RFC 5952 canonical form: lower-case, zeros compressed, IPv4 embedded.
1.0.0
py rs ts
47 tests
payroll.minimum-wage-check Unreviewed
Check pay for a pay reference period against the minimum or living wage for age and apprenticeship.
1.0.1
py rs ts
19 tests
telecoms.call-rating
Rate a call from a rate deck: longest-prefix destination match, billing increments, connection fee and minimum charge.
1.0.1
py rs ts
22 tests
agri.gross-margin
Enterprise gross margin (output less variable costs), in total and per hectare or per head, in exact money.
1.0.0
py rs ts
14 tests
auth.jwt
Sign, verify and decode HS256 JSON Web Tokens (RFC 7519): signature, algorithm and exp/nbf/iat checked with leeway.
1.0.0
py rs ts
54 tests
charts.bar-chart
Complete bar chart geometry as data, grouped or stacked: plot area, axes, gridlines, bar rectangles, colours, legend.
1.0.0
py rs ts
11 tests
charts.downsample
Reduce a long series to a few points that keep its visual shape, by Largest-Triangle-Three-Buckets (LTTB).
1.0.0
py rs ts
11 tests
charts.stack
Stack several series for stacked bars and areas: on zero, normalised to 100%, or diverging around zero.
1.0.0
py rs ts
14 tests
encoding.base64
Bytes to base64 and base64url text and back (RFC 4648), with strict decoding, identically in every language.
1.0.0
py rs ts
46 tests
encoding.hex
Bytes to lowercase hexadecimal text and back (RFC 4648 base16), strictly, identically in every language.
1.0.0
py rs ts
25 tests
energy.tariff-time-of-use
Cost half-hourly consumption against time-of-use rates: Economy 7 windows or Agile-style half-hourly prices.
1.0.1
py rs ts
24 tests
finance.fx-revaluation
Unrealised foreign exchange gain or loss on foreign-currency balances revalued at a period-end rate.
1.0.0
py rs ts
14 tests
finance.tax.add-vat Unreviewed
Add VAT to a net amount using the rate in force on the date of supply.
1.0.1
py rs ts
9 tests
finance.tax.vat-return Unreviewed
UK nine-box VAT return totals for a period from categorised sales and purchases (VAT Notice 700/12).
1.0.1
py rs ts
19 tests
fleet.tachograph-rest Unreviewed
Check daily and weekly rest against GB/EU drivers' hours: 11h daily (9h reduced, 3+9 split), 45h weekly (24h reduced).
1.0.2
py rs ts
22 tests
health.dose-weight-based Unreviewed
Weight-based dose (per kg) capped at a maximum single dose and rounded to a measurable volume, in exact micro-units.
1.0.1
py rs ts
20 tests
1.0.0
py rs ts
20 tests
inventory.eoq
Economic order quantity (Harris/Wilson): the order size that minimises ordering plus holding cost, in whole units.
1.0.0
py rs ts
20 tests
logistics.freight-rate
Freight charge from a carrier's dated weight-break tariff for a zone, with the fuel surcharge in force on the ship date.
1.0.1
py rs ts
26 tests
math.big-integer
Exact integer arithmetic of any size, on decimal strings, for powers and products that overflow 64 bits.
1.0.0
py rs ts
24 tests
math.pow
base to the power exponent from + - * / only, exact by squaring for whole exponents, identical in every language.
1.0.0
py rs ts
16 tests
math.sin-cos
Sine and cosine of an angle in radians from + - * / only, so every language returns the same doubles.
1.0.1
py rs ts
10 tests
monitor.error-budget
How much of an SLO's error budget is allowed, used and left, from good and bad event counts or seconds.
1.0.0
py rs ts
19 tests
monitor.rollup
Aggregate a metric series into fixed time buckets (count, min, max, avg, sum, last), empty buckets included.
1.0.0
py rs ts
15 tests
property.rental-yield Unreviewed
Gross and net rental yield of a let property, in basis points, from annual rent, costs and value.
1.0.1
py rs ts
14 tests
react.form.button React ^19 · TypeScript only
A form button in primary, secondary or warning style that stays focusable while loading (GOV.UK button).
1.0.1
ts
13 tests
react.form.form-field React ^19 · TypeScript only
Wire a label, hint and error message to one form control by id, the accessible way (GOV.UK form group pattern).
1.0.1
ts
19 tests
retail.coupon-validate
Check a coupon against a basket: dates, usage limits, eligible products and minimum spend, with reason codes.
1.0.1
py rs ts
24 tests
retail.loyalty-points
Loyalty points for a purchase: redeem in blocks, earn on what is paid, with tier multipliers.
1.0.0
py rs ts
19 tests
stats.moving-average
Simple or exponential moving average over a series, one value per full window, rounded to stated decimals.
2.0.0
py rs ts
24 tests
validation.bic
Check the format of a SWIFT/BIC code (8 or 11 characters) and split it into its parts.
1.0.0
py rs ts
15 tests
validation.email
Is this a plausible email address? A documented, pragmatic subset of RFC 5322, not the full grammar.
1.0.0
py rs ts
28 tests
validation.lei
Check a 20-character Legal Entity Identifier against its ISO 17442 / ISO 7064 MOD 97-10 check digits.
1.0.0
py rs ts
14 tests
agri.feed-ration
Ration costing and dry matter intake from each feed's fresh weight, DM % and price per tonne, in exact money.
1.0.0
py rs ts
15 tests
agri.spray-mix Unreviewed
Sprayer tank mix: tank fills, and product and water per full and part tank, for an area, water volume and dose.
1.0.1
py rs ts
14 tests
agri.yield-per-hectare
Crop yield per hectare and per acre from harvested quantity and field area in any area unit, exactly, as decimal text.
1.0.1
py rs ts
19 tests
auth.access-token
Issue an API's HS256 access token, read one from an Authorization header, and refuse revoked or superseded ones.
1.0.0
py rs ts
33 tests
banking.cheque-amount-words
The words and figures to write on a cheque: "One hundred and twenty pounds and fifty pence only", "£120.50".
1.0.0
py rs ts
18 tests
banking.fees-cap
Apply a monthly fee cap to a list of account charges: charge up to the cap, waive the rest.
1.0.0
py rs ts
18 tests
charity.donation-matching
Employer match on a donation: a ratio in basis points, limited by a per-donor cap and a programme budget.
1.0.0
py rs ts
17 tests
charity.gasds
Gift Aid Small Donations Scheme top-up for a tax year: the £8,000 limit, the matching rule and community buildings.
1.0.2
py rs ts
21 tests
charity.gift-aid
Gift Aid a UK charity can claim on a donation: basic rate tax grossed up, 25p per £1 at 20%.
1.0.2
py rs ts
15 tests
1.0.2
py rs ts
25 tests
charity.higher-rate-relief
A Gift Aid donor's extra tax relief at higher, intermediate, additional and top rates, by extending the tax bands.
1.0.0
py rs ts
16 tests
charity.reclaim-batch
Gift Aid claim totals for a period from donation records: donor lines, aggregated small gifts, tax due.
1.0.1
py rs ts
12 tests
charts.contrast
WCAG 2.x contrast ratio between two colours, and which text colour reads best on a background.
1.0.0
py rs ts
22 tests
charts.interpolate-color
The colour at a point along a sequential or diverging ramp, mixed in OKLab so steps look even; hex in, hex out.
1.0.0
py rs ts
19 tests
1.0.0
py rs ts
14 tests
collections.diff
Compare two lists of records by key: which were added, which removed, and which changed and in what fields.
1.0.0
py rs ts
18 tests
collections.sort-by
Stably sort records by one key, ascending or descending, with a total order across mixed types.
1.0.0
py rs ts
21 tests
1.0.2
py rs ts
24 tests
1.0.2
py rs ts
24 tests
dates.age
Age in whole years on a given date, with 29 February birthdays ageing on 1 March in other years.
1.0.0
py rs ts
18 tests
dates.quarter
Calendar quarter and fiscal quarter of a date, with the fiscal year and quarter date ranges, for any start month.
1.0.0
py rs ts
17 tests
dates.uk-tax-year
The UK personal tax year containing a date: 6 April to 5 April, with HMRC's label.
1.0.0
py rs ts
19 tests
education.academic-year
The academic year and term a date falls in: 1 September to 31 August by default, terms from the caller.
1.0.1
py rs ts
23 tests
1.0.1
py rs ts
21 tests
education.timetable-clash
Find timetable clashes: overlapping sessions that share a room, a teacher or a student group, in a fixed order.
1.0.0
py rs ts
20 tests
encoding.utf8
Text to UTF-8 bytes and strictly back (RFC 3629), so hashing and signing see the same bytes in every language.
1.0.0
py rs ts
25 tests
energy.degree-days
Heating and cooling degree days from daily mean temperatures and a base temperature, exact to 0.1.
1.0.0
py rs ts
14 tests
energy.estimate-read
Estimate a meter read for a date from the average daily consumption between two earlier reads, with rollover.
1.0.0
py rs ts
17 tests
energy.meter-advance
Units consumed between two meter reads, counting the meter rolling over past all nines once.
1.0.0
py rs ts
13 tests
energy.price-cap
Ofgem energy price cap unit rate and daily standing charge for a fuel and payment method on a date (GB average).
1.0.2
py rs ts
19 tests
energy.solar-generation
Estimated annual solar PV generation by the MCS method: kWp x Kk x shade factor, per array and in total.
1.0.0
py rs ts
14 tests
1.0.1
py rs ts
18 tests
1.0.0
py rs ts
16 tests
finance.tax.remove-vat Unreviewed
Extract the VAT already included in a gross amount, using the rate in force on the date of supply.
1.0.2
py rs ts
20 tests
finance.uk-bank-rate
Bank of England Bank Rate (base rate) in force on a date, from the Bank's official history since 2001.
1.0.1
py rs ts
14 tests
fleet.cost-per-mile
Whole-life cost per mile of a vehicle, in tenths of a penny, from depreciation, fuel, maintenance, insurance and tax.
1.0.0
py rs ts
13 tests
fleet.fuel-cost
Fuel cost of a trip from distance, fuel economy (UK or US mpg, or L/100km) and price per litre, exactly.
1.0.0
py rs ts
24 tests
geo.distance
Great-circle distance in metres between two latitude/longitude points (haversine), to the millimetre.
2.0.0
py rs ts
21 tests
geo.point-in-polygon
Whether a latitude/longitude point lies inside a polygon (ray casting; the boundary counts as inside).
1.0.0
py rs ts
20 tests
hospitality.recipe-cost
Cost a recipe and each portion from ingredient quantities, pack sizes and pack prices, allowing for trim and waste.
1.0.1
py rs ts
25 tests
inventory.abc-classification
ABC classes by annual consumption value (Pareto), with configurable cut-offs such as 80/15/5 and deterministic ties.
1.0.0
py rs ts
17 tests
inventory.reorder-point
Reorder point: demand over the supplier lead time, rounded up to whole units, plus safety stock.
1.0.0
py rs ts
13 tests
invest.rebalance Unreviewed
Whole-unit buy and sell trades that bring a portfolio back to target weights, skipping trades below a minimum size.
1.0.1
py rs ts
22 tests
lending.affordability Unreviewed
Debt-to-income and a stressed-rate affordability test for a proposed loan's monthly repayment.
1.0.1
py rs ts
13 tests
lending.amortisation-schedule Unreviewed
Repayment schedule for a level-payment loan: interest, principal and balance per period, ending at exactly zero.
1.0.1
py rs ts
13 tests
logistics.demurrage
Demurrage or detention charge for a container: free days, then a tiered daily rate from the carrier's tariff.
1.0.0
py rs ts
22 tests
logistics.route-distance
Total great-circle distance of an ordered list of stops, leg by leg, optionally back to the start, to the millimetre.
1.0.0
py rs ts
12 tests
1.0.0
py rs ts
20 tests
manufacturing.bom-explode
Explode a multi-level bill of materials into exact total quantities per component, with scrap and cycle checks.
1.0.0
py rs ts
17 tests
math.basis-points
Convert a rate between percent, basis points and a plain ratio exactly, as decimal text or integer basis points.
2.0.0
py rs ts
45 tests
math.integer-sqrt
Exact integer square root: the largest whole number whose square does not exceed n.
1.0.0
py rs ts
11 tests
math.round-div
Integer division with an explicit rounding mode, for money arithmetic that must not drift.
1.0.0
py rs ts
14 tests
math.round-float
Round a float half away from zero to 0-12 decimal places, identically in TypeScript, Python and Rust.
1.0.0
py rs ts
22 tests
money.convert
Convert an amount to another currency at a supplied exact rate, with an explicit rounding mode.
1.0.0
py rs ts
19 tests
1.0.0
py rs ts
14 tests
monitor.mttr
MTTR, MTBF, downtime and incident counts for a reporting window, from a list of incidents.
1.0.0
py rs ts
18 tests
monitor.uptime
Time-weighted uptime of a target over a window from its checks, with gaps longer than a limit counted as unknown.
1.0.0
py rs ts
21 tests
net.ipv4
Parse, format and check dotted-quad IPv4 addresses, refusing leading zeros, octal, hex and short forms.
1.0.0
py rs ts
39 tests
payroll.holiday-pay-accrual Unreviewed
UK holiday pay: 12.07% rolled-up holiday pay, or a week's pay averaged over the last 52 paid weeks.
1.0.1
py rs ts
18 tests
payroll.national-insurance Unreviewed
Employee and employer Class 1 National Insurance for one payment by category letter, exact percentage method.
1.0.2
py rs ts
29 tests
payroll.net-to-gross Unreviewed
The gross pay that gives at least a target net pay in one UK pay period, found by a deterministic search.
1.0.2
py rs ts
13 tests
payroll.overtime Unreviewed
Pay for the time worked in a period split into multiplier bands: basic, time and a half after 40 hours, double time.
1.0.1
py rs ts
11 tests
payroll.student-loan Unreviewed
Student loan or postgraduate loan deduction from one period's pay, by plan, rounded down to whole pounds.
1.0.2
py rs ts
24 tests
payroll.tax-code-parse Unreviewed
Parse a UK PAYE tax code (1257L, K475, BR, D0, NT, 0T, S and C prefixes, W1/M1/X) into its allowance and flags.
1.0.2
py rs ts
32 tests
1.0.1
py rs ts
19 tests
react.form.checkbox-group React ^19 · TypeScript only
A question answered by ticking any of several checkboxes, with item hints and an exclusive "None" (GOV.UK checkboxes).
1.0.1
ts
24 tests
react.form.styles React ^19 · TypeScript only
An optional stylesheet for the react.form elements' caps-* classes, themed by --caps-form-* custom properties.
1.0.1
ts
21 tests
retail.promotion-apply
Apply BOGOF, 3-for-2, percent off, amount off and multibuy deals to a basket, best for the customer, allocated to lines.
1.0.0
py rs ts
23 tests
retail.shipping-rate
Delivery charge from a dated rate table by service, zone, chargeable weight and size, with a free-over threshold.
1.0.1
py rs ts
20 tests
todo.due-label
The short English label shown next to a todo: "2 days overdue", "Due today", "Due tomorrow", "Due Fri 2 Oct".
1.0.0
py rs ts
21 tests
units.convert
Convert length, mass, area, volume, temperature and energy between units, exactly, as decimal text.
1.0.0
py rs ts
31 tests
validation.iban
Check an IBAN against the ISO 13616 mod-97-10 checksum and the registered length for its country.
1.0.0
py rs ts
22 tests
validation.uk-vat-number
Check a UK VAT registration number against HMRC's mod-97 checksum, including the post-2010 9755 variant.
1.0.0
py rs ts
22 tests
validation.vin
Check a 17-character vehicle identification number and its check digit; enforced for North American VINs.
1.0.0
py rs ts
17 tests
agri.growing-degree-days
Growing degree days (thermal time) from daily min/max temperatures, a base and an optional upper cap.
1.0.0
py rs ts
18 tests
agri.milk-price
Milk price per litre and payment from a contract's base price, butterfat/protein adjustments and bonuses.
1.0.0
py rs ts
18 tests
agri.seed-rate
Seed rate in kg/ha from target plants per m², thousand-grain weight and expected establishment.
1.0.0
py rs ts
17 tests
agri.stocking-rate
Stocking rate: livestock units and LU per hectare from animal numbers, by a published LU coefficient table.
1.0.1
py rs ts
17 tests
auth.bearer-token
The token from an HTTP Authorization header of the form "Bearer <token>" (RFC 6750), or null if it has none.
1.0.0
py rs ts
18 tests
auth.login-throttle
Allow a login attempt or lock the account out, from its recent failed attempts, with the seconds until it may retry.
1.0.0
py rs ts
19 tests
auth.normalise-email
Trim an email address and lower-case its domain for storage and lookup, or null if it is not a plausible address.
1.0.0
py rs ts
12 tests
auth.password-hash
Hash a password for storage as pbkdf2_sha256$iterations$salt$hash, verify one in constant time, and spot weak hashes.
1.0.0
py rs ts
36 tests
auth.password-policy
Check a new password against a named policy (NIST SP 800-63B-4 by default): length, common passwords, name and email.
1.0.1
py rs ts
31 tests
auth.validate-login
Check a login form (email, password): the normalised email to look up, or a message for each field to fix.
1.0.0
py rs ts
11 tests
1.0.0
py rs ts
15 tests
auth.validate-registration
Validate a sign-up form (email, password, name) in one call, with a message per field, in the browser and the API alike.
1.0.0
py rs ts
14 tests
banking.bacs-processing-date
Bacs three-day cycle: input, processing and entry (arrival) dates for a submission, skipping weekends and bank holidays.
1.0.0
py rs ts
18 tests
banking.faster-payments-limit
Whether a Faster Payment fits the scheme maximum, the bank's per-payment limit and what is left of its daily limit.
1.0.1
py rs ts
24 tests
1.0.0
py rs ts
15 tests
banking.savings-aer
AER (annual equivalent rate) from a gross nominal rate and how often interest is paid, to two decimal places.
1.0.0
py rs ts
14 tests
1.0.0
py rs ts
12 tests
charity.payroll-giving
UK Payroll Giving for one pay period: the donation comes off pay before PAYE, and the tax it saves the employee.
1.0.0
py rs ts
12 tests
1.0.0
py rs ts
19 tests
charity.restricted-funds
Allocate charity spending to restricted funds first, then unrestricted funds, never overdrawing a restricted fund.
1.0.0
py rs ts
17 tests
charts.axis
Axis geometry as data: tick positions, tick marks, label anchors and gridlines for number, time and category axes.
1.0.1
py rs ts
49 tests
charts.color
Hex colours to RGB and back, and sRGB channels to linear light and back, identically in every language.
1.0.1
py rs ts
39 tests
charts.extent
The minimum and maximum of a series as [min, max], skipping gaps (null), or null when there is no value.
1.0.1
py rs ts
15 tests
charts.format
Axis and label text for charts: tick numbers, SI prefixes (1.2k, 3.4M), percentages, dates and money.
1.0.0
py rs ts
61 tests
charts.histogram-bins
Bin values into histogram bins on round edges, by Sturges' rule, Freedman-Diaconis, or a fixed width.
1.0.0
py rs ts
17 tests
charts.layout
Chart layout: the plot area inside margins, legend items wrapped into rows, and greedy label collision avoidance.
1.0.1
py rs ts
33 tests
charts.line-chart
Complete line chart geometry as data: plot area, number or date axes, gridlines, series paths, colours, legend.
1.0.0
py rs ts
11 tests
charts.palette
A categorical palette of n colour-blind-safe colours for chart series: Okabe-Ito or Paul Tol's bright scheme.
1.0.0
py rs ts
12 tests
charts.scale
Map data values onto screen positions and back: linear, log, time, band and point scales, and nice domains.
1.1.0
py rs ts
93 tests
charts.shape
SVG path strings for lines, areas, steps, monotone curves, bars, arcs and pie slices, identical in every language.
1.0.1
py rs ts
70 tests
charts.sparkline
A sparkline's SVG path and end marker from a series, fitted into a box, with gaps left as breaks.
1.0.0
py rs ts
11 tests
charts.ticks
Axis ticks: a round step (1, 2 or 5 x 10^k), the ticks on it, and calendar ticks from days to years.
1.0.0
py rs ts
57 tests
collections.chunk
Split a list into consecutive batches of at most n items, in order; the last batch may be short.
1.0.0
py rs ts
11 tests
1.0.0
py rs ts
18 tests
1.0.0
py rs ts
18 tests
1.0.0
py rs ts
20 tests
construction.brick-count
Bricks and mortar for a wall, openings subtracted, for UK standard 215 x 102.5 x 65 mm bricks with 10 mm joints.
1.0.0
py rs ts
17 tests
construction.concrete-volume
Concrete for slabs, strip footings, pads and round columns: volume to the litre and an order rounded up to 0.1 m³.
1.0.0
py rs ts
19 tests
1.0.0
py rs ts
19 tests
construction.materials-area
Packs of tiles, paint, plasterboard or flooring to cover an area, with waste and coats, rounded up to whole packs.
1.0.0
py rs ts
18 tests
1.0.2
py rs ts
21 tests
construction.retention
Retention held and released on a construction valuation: full rate, half at practical completion, none at the end.
1.0.0
py rs ts
17 tests
1.0.0
py rs ts
15 tests
1.0.0
py rs ts
16 tests
construction.valuation
Interim valuation: gross value to date, retention, previous payments, amount due, VAT or reverse charge, and CIS.
1.0.0
py rs ts
16 tests
crypto.constant-time-equal
Compare two byte strings in time that does not depend on where they differ, for checking MACs and hashes.
1.0.0
py rs ts
12 tests
crypto.hmac-sha256
HMAC-SHA256 of a message under a secret key (RFC 2104, RFC 4231), in pure code that also runs in the browser.
1.0.0
py rs ts
13 tests
crypto.pbkdf2-sha256
PBKDF2 with HMAC-SHA256 (RFC 8018): derive a key from a password and salt, slowly, fast enough for a login request.
1.0.0
py rs ts
14 tests
crypto.sha256
The SHA-256 digest of a byte string (FIPS 180-4), in pure code that also runs in the browser.
1.0.0
py rs ts
13 tests
dates.add-business-days
Move a date forward or back by working days, skipping weekends and a caller-supplied holiday list.
1.0.0
py rs ts
19 tests
dates.add-days
Shift an ISO date by a whole number of days, forwards or backwards, with exact calendar arithmetic.
1.0.0
py rs ts
28 tests
dates.add-months
Add calendar months to an ISO date, clamping to the month end: 31 Jan + 1 month is 28 or 29 Feb.
1.0.0
py rs ts
22 tests
dates.bank-holidays
UK bank and public holidays for a region and year, as published by gov.uk, including one-off holidays.
1.0.1
py rs ts
15 tests
1.0.0
py rs ts
26 tests
dates.day-count-fraction
Year fraction between two dates by ACT/365F, ACT/360, 30/360, 30E/360 or ACT/ACT ISDA, as an exact fraction.
1.0.0
py rs ts
21 tests
dates.day-of-week
The ISO 8601 day of the week for a date: 1 is Monday through 7 is Sunday.
1.0.0
py rs ts
20 tests
dates.days-between
Calendar days from one ISO date to another, signed: negative when the second date is earlier.
1.0.0
py rs ts
15 tests
dates.is-leap-year
Whether a year is a Gregorian leap year: every 4th, except centuries, except every 400th.
1.0.0
py rs ts
15 tests
1.0.0
py rs ts
19 tests
dates.overlap
Days two date ranges have in common, with the end of each range stated as inclusive or exclusive.
1.0.0
py rs ts
15 tests
dates.recurrence
The next n dates of a repeating rule: monthly on a day, last weekday of the month, every k days or weeks, yearly.
1.0.0
py rs ts
25 tests
dates.week-number
ISO 8601 week number and week-numbering year of a date: weeks start Monday, week 1 holds the first Thursday.
1.0.0
py rs ts
18 tests
education.attendance-rate
Pupil attendance and absence rates in basis points, with the DfE persistent and severe absence flags.
1.0.1
py rs ts
19 tests
education.cpd-hours
CPD logged against a requirement for a rolling or fixed period: minutes counted, shortfall and days left.
1.0.0
py rs ts
20 tests
1.0.0
py rs ts
23 tests
1.0.0
py rs ts
20 tests
education.gpa
Grade point average on a 4.0 scale from letter grades and credit hours, weighted by credits and rounded once.
1.0.0
py rs ts
22 tests
1.0.0
py rs ts
20 tests
education.school-year-group
School year group from date of birth on a date, by UK nation: Reception to Year 13, P1 to S6, P1 to Year 14.
1.0.1
py rs ts
22 tests
education.weighted-grade
Weighted percentage across coursework and exam components, exact as a fraction, then rounded once.
1.0.0
py rs ts
22 tests
energy.bill-calculate
Electricity or gas bill from two meter reads: energy, standing charge, Climate Change Levy and VAT.
1.0.0
py rs ts
15 tests
energy.carbon-emissions
kgCO2e from kWh or litres of a fuel, using the UK government GHG conversion factors for the year.
1.0.1
py rs ts
17 tests
energy.climate-change-levy
Climate Change Levy on a business supply of electricity, gas, LPG or solid fuel, at the main rate in force on the date.
1.0.2
py rs ts
20 tests
energy.gas-kwh
Convert gas meter units (cubic metres or hundreds of cubic feet) to kWh with the calorific value and 1.02264 correction.
1.0.0
py rs ts
16 tests
energy.water-bill
Metered water and sewerage bill from two reads: volumetric charges, return to sewer, standing and surface water charges.
1.0.0
py rs ts
14 tests
1.0.0
py rs ts
17 tests
finance.aged-debt
Aged debt report: open invoices bucketed as current, 1-30, 31-60, 61-90 and 90+ days overdue as at a date.
1.0.0
py rs ts
13 tests
finance.bank-reconcile-match
Match bank statement lines to ledger entries by exact amount, a date window and reference similarity, deterministically.
1.0.0
py rs ts
19 tests
1.0.0
py rs ts
18 tests
1.0.0
py rs ts
21 tests
1.0.0
py rs ts
17 tests
1.0.0
py rs ts
15 tests
1.0.0
py rs ts
16 tests
1.0.1
py rs ts
15 tests