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.
faster_payments_check in Rust
1.0.1
py rs ts
24 tests
Apache-2.0
education.fee-instalments
Tuition fee instalment schedule from a total, shares and due dates, exact to the penny.
fee_instalments in Rust
1.0.0
py rs ts
20 tests
Apache-2.0
payments.stripe-checkout Integration · does I/O TypeScript only
Start a Stripe Checkout session and verify Stripe's signed webhooks, with a local stand-in for development.
Not available in Rust
1.1.0
ts
41 tests
MIT
finance.early-payment-discount
Early settlement discount available on a payment date under "2/10 net 30" style terms, and the amount to pay.
early_payment_discount in Rust
1.0.0
py rs ts
16 tests
Apache-2.0
insurance.instalment-plan Unreviewed
Pay a premium by monthly instalments: deposit, flat credit charge, instalments exact to the penny, and the APR.
instalment_plan in Rust
1.0.1
py rs ts
15 tests
Apache-2.0
payments.stripe-portal Integration · does I/O TypeScript only
Open Stripe's customer portal so a customer manages plan, card and invoices, with a local stand-in.
Not available in Rust
1.0.0
ts
19 tests
MIT
lending.loan-payment Unreviewed
Level repayment for a loan (annuity formula), computed exactly and rounded once, the way you choose.
loan_payment in Rust
1.0.1
py rs ts
23 tests
Apache-2.0
construction.valuation
Interim valuation: gross value to date, retention, previous payments, amount due, VAT or reverse charge, and CIS.
interim_valuation in Rust
1.0.0
py rs ts
16 tests
Apache-2.0
construction.payment-notice-dates
Construction Act default dates: payment due, payment notice, final date for payment and pay-less notice.
payment_notice_dates in Rust
1.0.2
py rs ts
21 tests
Apache-2.0 AND OGL-UK-3.0
finance.payment-terms-due-date
Invoice due date from payment terms: net N days, end of month, N days after month end, day N of next month.
payment_due_date in Rust
1.0.0
py rs ts
26 tests
Apache-2.0
lending.overpayment-effect Unreviewed
What a one-off overpayment does to a loan: a shorter term at the same payment, or a lower payment over the same term.
overpayment_effect in Rust
1.0.1
py rs ts
14 tests
Apache-2.0
retail.gift-card-balance
Apply a payment from a gift card, redeeming part of the balance or all of it, and say what is still due.
redeem_gift_card in Rust
1.0.0
py rs ts
11 tests
Apache-2.0
education.student-loan-repayment
A graduate's student or postgraduate loan repayment for a tax year, as Self Assessment works it out.
student_loan_repayment in Rust
1.0.1
py rs ts
21 tests
Apache-2.0 AND OGL-UK-3.0
finance.late-payment-interest
UK statutory late payment interest (8% over Bank Rate) and fixed compensation under the Late Payment Act 1998.
late_payment_interest in Rust
1.0.1
py rs ts
18 tests
Apache-2.0 AND OGL-UK-3.0
subscriptions.dunning-schedule
Retry dates for a failed subscription payment from a retry policy, in calendar or business days.
dunning_schedule in Rust
1.0.0
py rs ts
14 tests
Apache-2.0
money.split-even
Split an amount into n near-equal parts that add back up to exactly the whole.
split_even in Rust
1.0.0
py rs ts
13 tests
Apache-2.0
lending.amortisation-schedule Unreviewed
Repayment schedule for a level-payment loan: interest, principal and balance per period, ending at exactly zero.
amortisation_schedule in Rust
1.0.1
py rs ts
13 tests
Apache-2.0
banking.bacs-processing-date
Bacs three-day cycle: input, processing and entry (arrival) dates for a submission, skipping weekends and bank holidays.
bacs_processing_dates in Rust
1.0.0
py rs ts
18 tests
Apache-2.0
legal.statutory-interest Unreviewed
Statutory interest on a judgment debt (8% simple, daily) or a late commercial debt, England and Wales.
statutory_interest in Rust
1.0.1
py rs ts
19 tests
Apache-2.0 AND OGL-UK-3.0
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.
recurrence in Rust
1.0.0
py rs ts
25 tests
Apache-2.0
validation.luhn
Check a digit string against the Luhn mod-10 checksum used by payment cards and many identifiers.
is_luhn in Rust
1.0.0
py rs ts
18 tests
Apache-2.0
validation.bic
Check the format of a SWIFT/BIC code (8 or 11 characters) and split it into its parts.
validate_bic in Rust
1.0.0
py rs ts
15 tests
Apache-2.0
validation.iban
Check an IBAN against the ISO 13616 mod-97-10 checksum and the registered length for its country.
is_iban in Rust
1.0.0
py rs ts
22 tests
Apache-2.0
charity.reclaim-batch
Gift Aid claim totals for a period from donation records: donor lines, aggregated small gifts, tax due.
gift_aid_claim_batch in Rust
1.0.1
py rs ts
12 tests
Apache-2.0 AND OGL-UK-3.0
payroll.national-insurance Unreviewed
Employee and employer Class 1 National Insurance for one payment by category letter, exact percentage method.
national_insurance in Rust
1.0.2
py rs ts
29 tests
Apache-2.0 AND OGL-UK-3.0
construction.cis-deduction
Construction Industry Scheme deduction (0, 20 or 30%) on the labour part of a subcontractor payment.
cis_deduction in Rust
1.0.2
py rs ts
24 tests
Apache-2.0 AND OGL-UK-3.0
fleet.mileage-allowance
HMRC approved mileage allowance payments for an employee's own vehicle: tax-free amount, taxable excess or relief.
mileage_allowance in Rust
1.0.2
py rs ts
23 tests
Apache-2.0 AND OGL-UK-3.0
energy.price-cap
Ofgem energy price cap unit rate and daily standing charge for a fuel and payment method on a date (GB average).
price_cap in Rust
1.0.2
py rs ts
19 tests
Apache-2.0 AND OGL-UK-3.0
agri.milk-price
Milk price per litre and payment from a contract's base price, butterfat/protein adjustments and bonuses.
milk_price in Rust
1.0.0
py rs ts
18 tests
Apache-2.0
subscriptions.trial-end
When a free trial ends and the first payment is due, from the trial's start date and length in days.
trial_end in Rust
1.0.0
py rs ts
12 tests
Apache-2.0
lending.apr Unreviewed
Consumer-credit APR from drawdowns and repayments, by the FCA CONC App 1.2.6 equation, to one decimal place.
apr in Rust
1.0.1
py rs ts
22 tests
Apache-2.0
lending.affordability Unreviewed
Debt-to-income and a stressed-rate affordability test for a proposed loan's monthly repayment.
affordability in Rust
1.0.1
py rs ts
13 tests
Apache-2.0
property.mortgage-affordability Unreviewed
Mortgage affordability: the loan-to-income multiple and a stress-tested repayment against income, both checked.
mortgage_affordability in Rust
1.0.1
py rs ts
13 tests
Apache-2.0
charity.payroll-giving
UK Payroll Giving for one pay period: the donation comes off pay before PAYE, and the tax it saves the employee.
payroll_giving in Rust
1.0.0
py rs ts
12 tests
Apache-2.0
payroll.tax-period Unreviewed
The UK PAYE tax week, tax month and payroll period number that a pay date falls in, weeks 53, 54 and 56 included.
tax_period in Rust
1.0.1
py rs ts
16 tests
Apache-2.0 AND OGL-UK-3.0
banking.savings-aer
AER (annual equivalent rate) from a gross nominal rate and how often interest is paid, to two decimal places.
savings_aer in Rust
1.0.0
py rs ts
14 tests
Apache-2.0
lending.early-settlement Unreviewed
Early settlement figure and rebate on UK regulated consumer credit, per the Early Settlement Regulations 2004.
early_settlement in Rust
1.0.1
py rs ts
18 tests
Apache-2.0
payroll.student-loan Unreviewed
Student loan or postgraduate loan deduction from one period's pay, by plan, rounded down to whole pounds.
student_loan in Rust
1.0.2
py rs ts
24 tests
Apache-2.0 AND OGL-UK-3.0
subscriptions.stripe-state
Folds Stripe's subscription and invoice webhook events into one normalised subscription state, in any order.
apply_stripe_event in Rust
1.0.0
py rs ts
33 tests
Apache-2.0
construction.vat-reverse-charge
Whether the UK VAT domestic reverse charge applies to a construction supply, and the invoice wording.
domestic_reverse_charge in Rust
1.0.2
py rs ts
24 tests
Apache-2.0 AND OGL-UK-3.0
construction.retention
Retention held and released on a construction valuation: full rate, half at practical completion, none at the end.
retention in Rust
1.0.0
py rs ts
17 tests
Apache-2.0
payroll.income-tax Unreviewed
PAYE income tax for one pay period from a tax code, cumulative or week 1/month 1, by HMRC's tax table routines.
income_tax in Rust
1.0.2
py rs ts
30 tests
Apache-2.0 AND OGL-UK-3.0
fleet.company-car-bik Unreviewed
UK company car benefit in kind: appropriate percentage by CO2 and electric range, car and fuel benefit for a tax year.
company_car_bik in Rust
1.0.2
py rs ts
37 tests
Apache-2.0 AND OGL-UK-3.0
invest.dividend-yield Unreviewed
Trailing and forward dividend yield of a share or fund, in basis points, from the price and the dividends per unit.
dividend_yield in Rust
1.0.1
py rs ts
19 tests
Apache-2.0
payroll.gross-to-net Unreviewed
A UK payslip for one pay period: gross pay, pension, PAYE tax, National Insurance, student loans and net pay.
gross_to_net in Rust
1.0.1
py rs ts
8 tests
Apache-2.0 AND OGL-UK-3.0
legal.disbursements-vat Unreviewed
Whether a cost passed to a client is a VAT disbursement (outside scope) or a recharge (VAT due), per HMRC Notice 700.
disbursement_vat in Rust
1.0.1
py rs ts
14 tests
Apache-2.0
payroll.redundancy-pay Unreviewed
Statutory redundancy pay from age, completed years of service (at most 20) and a week's pay capped by date.
statutory_redundancy_pay in Rust
1.0.1
py rs ts
13 tests
Apache-2.0 AND OGL-UK-3.0
insurance.claim-reserve Unreviewed
Claim reserve history: paid, recovered, outstanding and incurred after each transaction, and the movement.
claim_reserve_history in Rust
1.0.1
py rs ts
14 tests
Apache-2.0
react.form.money-field React ^19 · TypeScript only
A money input with its currency symbol, locale separators and min/max, read and checked by form.money-input.
Not available in Rust
1.0.0
ts
14 tests
Apache-2.0
hospitality.tourist-tax
Visitor levy (tourist tax) on an overnight stay: Edinburgh's 5%, Cardiff's per person per night, or a caller's own rule.
tourist_tax in Rust
1.0.1
py rs ts
30 tests
Apache-2.0 AND OGL-UK-3.0
math.big-integer
Exact integer arithmetic of any size, on decimal strings, for powers and products that overflow 64 bits.
calculate_big_integer in Rust
1.0.0
py rs ts
24 tests
Apache-2.0
finance.accruals-prepayments
Split an invoice across accounting periods by days of service, for accruals, prepayments and deferred income.
allocate_to_periods in Rust
1.0.0
py rs ts
17 tests
Apache-2.0
property.deposit-cap Unreviewed
Maximum tenancy deposit a landlord may take: five or six weeks' rent under the Tenant Fees Act 2019.
deposit_cap in Rust
1.0.2
py rs ts
19 tests
Apache-2.0 AND OGL-UK-3.0
invest.isa-allowance Unreviewed
ISA allowance used and remaining for a UK tax year: the overall limit, Lifetime ISA, cash ISA and Junior ISA.
isa_allowance in Rust
1.0.2
py rs ts
30 tests
Apache-2.0 AND OGL-UK-3.0
property.holding-deposit-cap Unreviewed
Maximum holding deposit to reserve a rental property: one week's rent (annual rent ÷ 52), rounded down.
holding_deposit_cap in Rust
1.0.1
py rs ts
11 tests
Apache-2.0
lending.daily-interest Unreviewed
Interest accrued day by day on a changing balance under a day-count convention, summed exactly and rounded once.
daily_interest in Rust
1.0.1
py rs ts
21 tests
Apache-2.0
legal.retainer-drawdown Unreviewed
Apply money held on account in client account to bills in order: what each bill takes, what stays due, what is left.
retainer_drawdown in Rust
1.0.1
py rs ts
11 tests
Apache-2.0
property.completion-statement Unreviewed
A buyer's completion statement: price less deposit, ground rent and service charge apportioned to completion, plus fees.
completion_statement in Rust
1.0.1
py rs ts
15 tests
Apache-2.0
energy.solar-generation
Estimated annual solar PV generation by the MCS method: kWp x Kk x shade factor, per array and in total.
solar_generation in Rust
1.0.0
py rs ts
14 tests
Apache-2.0
finance.tax.vat-return Unreviewed
UK nine-box VAT return totals for a period from categorised sales and purchases (VAT Notice 700/12).
vat_return in Rust
1.0.1
py rs ts
19 tests
Apache-2.0
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.
holiday_pay in Rust
1.0.1
py rs ts
18 tests
Apache-2.0 AND OGL-UK-3.0
encoding.base64
Bytes to base64 and base64url text and back (RFC 4648), with strict decoding, identically in every language.
A group of 4: base64_encode, base64_decode, base64_url_encode, base64_url_decode
1.0.0
py rs ts
46 tests
Apache-2.0
auth.jwt
Sign, verify and decode HS256 JSON Web Tokens (RFC 7519): signature, algorithm and exp/nbf/iat checked with leeway.
A group of 3: sign_jwt, verify_jwt, decode_jwt
1.0.0
py rs ts
54 tests
Apache-2.0
payroll.statutory-maternity-pay Unreviewed
UK Statutory Maternity Pay: LEL eligibility and 39 weekly amounts, 90% then the lower of 90% or the flat rate.
statutory_maternity_pay in Rust
1.0.1
py rs ts
12 tests
Apache-2.0 AND OGL-UK-3.0
finance.proration
Split an amount into the part used and the part unused over a billing period, losing nothing.
prorate in Rust
1.0.0
py rs ts
16 tests
Apache-2.0
charity.gift-aid
Gift Aid a UK charity can claim on a donation: basic rate tax grossed up, 25p per £1 at 20%.
gift_aid in Rust
1.0.2
py rs ts
15 tests
Apache-2.0 AND OGL-UK-3.0
charity.gift-aid-eligibility
Whether a UK donation qualifies for Gift Aid: declaration, enough tax paid, and the donor benefit limits.
gift_aid_eligibility in Rust
1.0.2
py rs ts
25 tests
Apache-2.0 AND OGL-UK-3.0
charity.gasds
Gift Aid Small Donations Scheme top-up for a tax year: the £8,000 limit, the matching rule and community buildings.
gasds in Rust
1.0.2
py rs ts
21 tests
Apache-2.0 AND OGL-UK-3.0
subscriptions.mrr-arr
Monthly and annual recurring revenue from a list of subscriptions, normalising intervals and leaving out trials.
mrr_arr in Rust
1.1.0
py rs ts
19 tests
Apache-2.0
agri.stocking-rate
Stocking rate: livestock units and LU per hectare from animal numbers, by a published LU coefficient table.
stocking_rate in Rust
1.0.1
py rs ts
17 tests
Apache-2.0 AND OGL-UK-3.0
1.0.0
py rs ts
22 tests
Apache-2.0
hospitality.tronc-allocation
Share a tips pool (tronc) between staff by hours worked, points, or hours times points, exactly to the penny.
tronc_allocation in Rust
1.0.0
py rs ts
19 tests
Apache-2.0
agri.field-area
Field area in square metres, hectares and acres from a boundary polygon of latitude/longitude points.
field_area in Rust
1.0.0
py rs ts
14 tests
Apache-2.0
finance.bank-reconcile-match
Match bank statement lines to ledger entries by exact amount, a date window and reference similarity, deterministically.
match_bank_lines in Rust
1.0.0
py rs ts
19 tests
Apache-2.0
dates.business-days-between
Working days between two dates, excluding weekends and a caller-supplied holiday list.
business_days_between in Rust
1.0.0
py rs ts
26 tests
Apache-2.0
validation.uk-sort-code-account
Check a UK sort code and account number with the Vocalink/Pay.UK modulus rules, against a table you supply.
validate_uk_sort_code_account in Rust
3.0.0
py rs ts
64 tests
Apache-2.0
payroll.notice-period Unreviewed
Statutory minimum notice in weeks from continuous service: one week per year from two years, capped at twelve.
statutory_notice in Rust
1.0.1
py rs ts
10 tests
Apache-2.0 AND OGL-UK-3.0
legal.limitation-date Unreviewed
The last day to bring a claim under the Limitation Act 1980, by claim type, from the date it accrued.
limitation_date in Rust
1.0.1
py rs ts
26 tests
Apache-2.0 AND OGL-UK-3.0
invest.money-weighted-return Unreviewed
Money-weighted return (XIRR) of dated cash flows on Excel's actual/365 convention, solved exactly in fixed point.
money_weighted_return in Rust
1.0.1
py rs ts
24 tests
Apache-2.0
payroll.pension-auto-enrolment Unreviewed
Workplace pension contributions for one pay period: qualifying earnings band, employee and employer shares, tax relief.
pension_contributions in Rust
1.0.2
py rs ts
22 tests
Apache-2.0 AND OGL-UK-3.0
subscriptions.proration
Mid-cycle plan change: credit for unused time on the old plan and charge for the rest of the period on the new one.
prorate_change in Rust
1.0.0
py rs ts
17 tests
Apache-2.0
money.compare
Compare two amounts of one currency, refusing to compare across currencies; min, max and clamp too.
A group of 4: compare_money, min_money, max_money, clamp_money
2.0.0
py rs ts
39 tests
Apache-2.0
math.rational
Exact fraction arithmetic, always reduced, for rates and ratios that must not drift.
A group of 8: calculate_rational, rational, add_rational, subtract_rational, multiply_rational, divide_rational, compare_rational, rational_to_integer
2.0.0
py rs ts
86 tests
Apache-2.0
math.gcd-lcm
Greatest common divisor and least common multiple of two integers, exactly and without overflow.
A group of 3: gcd_lcm, gcd, lcm
2.0.0
py rs ts
39 tests
Apache-2.0
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.
climate_change_levy in Rust
1.0.2
py rs ts
20 tests
Apache-2.0 AND OGL-UK-3.0
charts.layout
Chart layout: the plot area inside margins, legend items wrapped into rows, and greedy label collision avoidance.
A group of 3: plot_area, legend_rows, avoid_collisions
1.0.1
py rs ts
33 tests
Apache-2.0
charts.scale
Map data values onto screen positions and back: linear, log, time, band and point scales, and nice domains.
A group of 7: linear_scale, invert_linear, nice_domain, log_scale, time_scale, band_scale, point_scale
1.1.0
py rs ts
93 tests
Apache-2.0
math.basis-points
Convert a rate between percent, basis points and a plain ratio exactly, as decimal text or integer basis points.
A group of 3: convert_rate, to_basis_points, from_basis_points
2.0.0
py rs ts
45 tests
Apache-2.0
telecoms.roaming-charge
Roaming charges for a trip abroad from a dated tariff table of zones: daily fees, data, calls and texts.
roaming_charge in Rust
1.0.1
py rs ts
16 tests
Apache-2.0
charts.shape
SVG path strings for lines, areas, steps, monotone curves, bars, arcs and pie slices, identical in every language.
A group of 7: line_path, area_path, step_path, monotone_curve, bar_rects, arc_path, pie_angles
1.0.1
py rs ts
70 tests
Apache-2.0
retail.oss-vat
EU distance-selling VAT: which member state's standard rate applies under OSS and the EUR 10,000 threshold, and the VAT.
oss_vat in Rust
1.0.1
py rs ts
28 tests
Apache-2.0
retail.loyalty-points
Loyalty points for a purchase: redeem in blocks, earn on what is paid, with tier multipliers.
loyalty_points in Rust
1.0.0
py rs ts
19 tests
Apache-2.0
finance.tax.vat-rate Unreviewed
Look up the VAT rate in force for a jurisdiction, category and date.
vat_rate in Rust
1.2.2
py rs ts
25 tests
Apache-2.0 AND OGL-UK-3.0
property.stamp-duty Unreviewed
Stamp duty on a property purchase: SDLT (England, NI), LBTT (Scotland), LTT (Wales), with reliefs and surcharges.
stamp_duty in Rust
1.0.2
py rs ts
51 tests
Apache-2.0 AND OGL-UK-3.0
insurance.ipt Unreviewed
UK Insurance Premium Tax at the standard or higher rate in force on a date, added to or taken out of a premium.
insurance_premium_tax in Rust
1.0.2
py rs ts
23 tests
Apache-2.0 AND OGL-UK-3.0
property.council-tax-band Unreviewed
Council tax for a valuation band from the Band D charge: the statutory band ratio, England, Wales and Scotland.
council_tax_band in Rust
1.0.2
py rs ts
24 tests
Apache-2.0 AND OGL-UK-3.0
insurance.premium-proration Unreviewed
Return premium on mid-term cancellation, pro rata or on a short-period scale, with an optional minimum retained premium.
cancellation_return_premium in Rust
1.0.1
py rs ts
26 tests
Apache-2.0
payroll.statutory-sick-pay Unreviewed
UK Statutory Sick Pay for sickness spells: waiting days, 8-week linking, 28-week limit and the rate by date.
statutory_sick_pay in Rust
1.0.1
py rs ts
19 tests
Apache-2.0 AND OGL-UK-3.0
banking.cheque-amount-words
The words and figures to write on a cheque: "One hundred and twenty pounds and fifty pence only", "£120.50".
cheque_amount_words in Rust
1.0.0
py rs ts
18 tests
Apache-2.0
payroll.pro-rata-salary Unreviewed
Salary for part of a pay period and for part-time hours, by calendar days or working days, rounded once.
pro_rata_salary in Rust
1.0.1
py rs ts
13 tests
Apache-2.0