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.
fasterPaymentsCheck in TypeScript
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.
feeInstalments in TypeScript
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.
A group of 3: createCheckoutSession, verifyWebhook, signWebhook
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.
earlyPaymentDiscount in TypeScript
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.
instalmentPlan in TypeScript
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.
createPortalSession in TypeScript
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.
loanPayment in TypeScript
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.
interimValuation in TypeScript
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.
paymentNoticeDates in TypeScript
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.
paymentDueDate in TypeScript
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.
overpaymentEffect in TypeScript
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.
redeemGiftCard in TypeScript
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.
studentLoanRepayment in TypeScript
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.
latePaymentInterest in TypeScript
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.
dunningSchedule in TypeScript
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.
splitEven in TypeScript
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.
amortisationSchedule in TypeScript
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.
bacsProcessingDates in TypeScript
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.
statutoryInterest in TypeScript
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 TypeScript
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.
isLuhn in TypeScript
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.
validateBic in TypeScript
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.
isIban in TypeScript
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.
giftAidClaimBatch in TypeScript
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.
nationalInsurance in TypeScript
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.
cisDeduction in TypeScript
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.
mileageAllowance in TypeScript
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).
priceCap in TypeScript
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.
milkPrice in TypeScript
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.
trialEnd in TypeScript
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 TypeScript
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 TypeScript
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.
mortgageAffordability in TypeScript
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.
payrollGiving in TypeScript
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.
taxPeriod in TypeScript
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.
savingsAer in TypeScript
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.
earlySettlement in TypeScript
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.
studentLoan in TypeScript
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.
applyStripeEvent in TypeScript
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.
domesticReverseCharge in TypeScript
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 TypeScript
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.
incomeTax in TypeScript
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.
companyCarBik in TypeScript
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.
dividendYield in TypeScript
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.
grossToNet in TypeScript
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.
disbursementVat in TypeScript
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.
statutoryRedundancyPay in TypeScript
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.
claimReserveHistory in TypeScript
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.
MoneyField in TypeScript
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.
touristTax in TypeScript
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.
calculateBigInteger in TypeScript
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.
allocateToPeriods in TypeScript
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.
depositCap in TypeScript
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.
isaAllowance in TypeScript
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.
holdingDepositCap in TypeScript
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.
dailyInterest in TypeScript
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.
retainerDrawdown in TypeScript
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.
completionStatement in TypeScript
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.
solarGeneration in TypeScript
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).
vatReturn in TypeScript
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.
holidayPay in TypeScript
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: base64Encode, base64Decode, base64UrlEncode, base64UrlDecode
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: signJwt, verifyJwt, decodeJwt
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.
statutoryMaternityPay in TypeScript
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 TypeScript
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%.
giftAid in TypeScript
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.
giftAidEligibility in TypeScript
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 TypeScript
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.
mrrArr in TypeScript
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.
stockingRate in TypeScript
1.0.1
py rs ts
17 tests
Apache-2.0 AND OGL-UK-3.0
hospitality.cancellation-charge
Cancellation fee for a booking from a policy of notice bands and the days of notice given.
cancellationCharge in TypeScript
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.
troncAllocation in TypeScript
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.
fieldArea in TypeScript
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.
matchBankLines in TypeScript
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.
businessDaysBetween in TypeScript
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.
validateUkSortCodeAccount in TypeScript
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.
statutoryNotice in TypeScript
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.
limitationDate in TypeScript
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.
moneyWeightedReturn in TypeScript
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.
pensionContributions in TypeScript
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.
prorateChange in TypeScript
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: compareMoney, minMoney, maxMoney, clampMoney
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: calculateRational, rational, addRational, subtractRational, multiplyRational, divideRational, compareRational, rationalToInteger
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: gcdLcm, 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.
climateChangeLevy in TypeScript
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: plotArea, legendRows, avoidCollisions
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: linearScale, invertLinear, niceDomain, logScale, timeScale, bandScale, pointScale
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: convertRate, toBasisPoints, fromBasisPoints
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.
roamingCharge in TypeScript
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: linePath, areaPath, stepPath, monotoneCurve, barRects, arcPath, pieAngles
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.
ossVat in TypeScript
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.
loyaltyPoints in TypeScript
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.
vatRate in TypeScript
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.
stampDuty in TypeScript
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.
insurancePremiumTax in TypeScript
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.
councilTaxBand in TypeScript
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.
cancellationReturnPremium in TypeScript
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.
statutorySickPay in TypeScript
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".
chequeAmountWords in TypeScript
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.
proRataSalary in TypeScript
1.0.1
py rs ts
13 tests
Apache-2.0