Modules / ghcr.io / i2y

ritsu-late-payment

What a supplier claims in the United Kingdom for an invoice paid late: a rule, a calendar and the kaname code that joins them

  • Signed by i2y/ritsu
  • Digests match
  • Passes ritsu check
  • 2 data sources pinned by SHA-256
  • Published 2026-11-05
  • Needs ritsu 0.41.0 or later
  • Source

What it holds

NameWhat it isTry it, or read its code
payment_termsThe day a commercial invoice falls due when no day was agreed: the last day of the 30 days beginning with the day the buyer had the invoice. As this module reads the Late Payment of Commercial Debts (Interest) Act 1998, section 4(2A) and (2H); it says nothing of how the law is read
支払期限支払いの日を決めていない事業者間の請求書の期日。買い手が請求書を受けた日から数えて 30 日の、最後の日。Late Payment of Commercial Debts (Interest) Act 1998 の第 4 条 (2A) と (2H) を、このモジュールとして読んだもの。法令の読み方を示すものではない。payment_terms.cal の日本語の版
late_payment_chargesWhat a supplier may claim on a commercial debt paid late: the fixed sum for the cost of recovering it, and statutory interest at 8% over the reference rate, worked out a day at a time. As this example reads the Late Payment of Commercial Debts (Interest) Act 1998, section 5A(2), and GOV.UK's guide to charging interest on a commercial debt; it says nothing of how the law is read
遅延の請求額事業者間の代金の支払いが遅れたとき、売り手が請求できるもの。取り立ての費用としての定額と、基準金利に 8% を足した率で一日ずつ数える法定の利息。Late Payment of Commercial Debts (Interest) Act 1998 の第 5A 条 (2) と、GOV.UK の事業者間の請求の利息の手引きを、この例として読んだもの。法令の読み方を示すものではない。late_payment_charges.rule の日本語の版
支払いの遅れ遅れて払われた請求書について、売り手が請求するもの。期日、何日遅れて払われたか、規則がそれに付ける定額と利息。late_payment.kn の日本語の版
late_paymentWhat a supplier claims for an invoice paid late: the day it fell due, how many days late it was paid, and the fixed sum and the interest the rule gives for them

What a supplier in the United Kingdom may claim when a commercial invoice is paid late, under the Late Payment of Commercial Debts (Interest) Act 1998, for a module of ritsu to use: a rule, a calendar, and the code of kaname that joins them. Each is here in English and in Japanese, and the two give the same answers.

In EnglishIn JapaneseWhat it answers
dates/payment_terms.caldates/支払期限.calThe day an invoice falls due when no day was agreed: the last of the 30 days from the day the buyer had it (section 4)
rules/late_payment_charges.rulerules/遅延の請求額.ruleThe fixed sum for the cost of recovering the debt (section 5A), and the interest at 8% over the reference rate, a day at a time
late_payment.knlate_payment.ja.knThe whole claim on an invoice: the day it fell due, how many days late it was paid, the fixed sum and the interest, or nothing when it was paid in time

The reference rate is an input: pass the Bank of England base rate that applies. The rules read the Act and GOV.UK's guide as they stood on 18 October 2026, to be read against them. They are not legal advice. Where the guide does not say which way a fraction of a penny goes, a comment in the rule says so, and half up is a placeholder.

Use

Add the module, add the line that checks its signature to your ritsu.mod, and fetch it:

$ ritsu mod add late_payment ghcr.io/i2y/ritsu-late-payment@1.0.0
signature "ghcr.io/i2y/ritsu-late-payment" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"
$ ritsu mod fetch

Then read it from your own code of kaname or dandori:

use rule charges from "@late_payment/rules/late_payment_charges.rule"
use dates terms from "@late_payment/dates/payment_terms.cal"

Sources

THIRD_PARTY_NOTICES.md lists the copies under rules/sources/. Contains public sector information licensed under the Open Government Licence v3.0.

The rule, the calendar and the code are under the MIT License or the Apache License, version 2.0, at your option, as ritsu is.

Versions

A version that follows a change in the law raises the minor version. A version that renames a file or removes one, or changes the inputs or outputs of a rule, raises the major version.

2 date computations, 2 rules, 2 kaname modules

Each page is drawn by its language from the file at this version.

payment_terms

dates/payment_terms.caldate computation

The day a commercial invoice falls due when no day was agreed: the last day of the 30 days beginning with the day the buyer had the invoice. As this module reads the Late Payment of Commercial Debts (Interest) Act 1998, section 4(2A) and (2H); it says nothing of how the law is read

支払期限

dates/支払期限.caldate computation

支払いの日を決めていない事業者間の請求書の期日。買い手が請求書を受けた日から数えて 30 日の、最後の日。Late Payment of Commercial Debts (Interest) Act 1998 の第 4 条 (2A) と (2H) を、このモジュールとして読んだもの。法令の読み方を示すものではない。payment_terms.cal の日本語の版

late_payment_charges

rules/late_payment_charges.rulerule

What a supplier may claim on a commercial debt paid late: the fixed sum for the cost of recovering it, and statutory interest at 8% over the reference rate, worked out a day at a time. As this example reads the Late Payment of Commercial Debts (Interest) Act 1998, section 5A(2), and GOV.UK's guide to charging interest on a commercial debt; it says nothing of how the law is read

Inputs
debt (1 to 100,000,000 GBPc); days_late (1 to 1,500); reference_rate (0 to 1,500 %)
Outputs
compensation (40 to 100 GBP); interest (0 to 94,521,000 GBPc)
Source
sources/late-payment-act-1998.md
Source
sources/late-commercial-payments.md

遅延の請求額

rules/遅延の請求額.rulerule

事業者間の代金の支払いが遅れたとき、売り手が請求できるもの。取り立ての費用としての定額と、基準金利に 8% を足した率で一日ずつ数える法定の利息。Late Payment of Commercial Debts (Interest) Act 1998 の第 5A 条 (2) と、GOV.UK の事業者間の請求の利息の手引きを、この例として読んだもの。法令の読み方を示すものではない。late_payment_charges.rule の日本語の版

Inputs
債権額 (1 to 100,000,000 GBPc); 遅れた日数 (1 to 1,500); 基準金利 (0 to 1,500 %)
Outputs
定額の補償 (40 to 100 GBP); 利息 (0 to 94,521,000 GBPc)
Source
sources/late-payment-act-1998.md
Source
sources/late-commercial-payments.md

支払いの遅れ

late_payment.ja.knkaname module

遅れて払われた請求書について、売り手が請求するもの。期日、何日遅れて払われたか、規則がそれに付ける定額と利息。late_payment.kn の日本語の版

Functions
遅れの請求

late_payment

late_payment.knkaname module

What a supplier claims for an invoice paid late: the day it fell due, how many days late it was paid, and the fixed sum and the interest the rule gives for them

Functions
claim

Try

1.0.0 is the oldest version here

When a new version is published, this tab says which inputs get a different answer, which days become closed or open, and which days the calendar newly knows.

1 version

VersionPublishedDigestFilesChecked
1.0.0 latest2026-11-05sha256:e21b9852fe7b13its digests and its signature; passes ritsu check

Date computations

Rules

kaname modules

Data and other files

About the module