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
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
| Name | What it is | Try it, or read its code |
|---|---|---|
| payment_terms | 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 | Code |
| 支払期限 | 支払いの日を決めていない事業者間の請求書の期日。買い手が請求書を受けた日から数えて 30 日の、最後の日。Late Payment of Commercial Debts (Interest) Act 1998 の第 4 条 (2A) と (2H) を、このモジュールとして読んだもの。法令の読み方を示すものではない。payment_terms.cal の日本語の版 | Code |
| late_payment_charges | 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 | TryCode |
| 遅延の請求額 | 事業者間の代金の支払いが遅れたとき、売り手が請求できるもの。取り立ての費用としての定額と、基準金利に 8% を足した率で一日ずつ数える法定の利息。Late Payment of Commercial Debts (Interest) Act 1998 の第 5A 条 (2) と、GOV.UK の事業者間の請求の利息の手引きを、この例として読んだもの。法令の読み方を示すものではない。late_payment_charges.rule の日本語の版 | TryCode |
| 支払いの遅れ | 遅れて払われた請求書について、売り手が請求するもの。期日、何日遅れて払われたか、規則がそれに付ける定額と利息。late_payment.kn の日本語の版 | Code |
| late_payment | 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 | Code |
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 English | In Japanese | What it answers |
|---|---|---|
dates/payment_terms.cal | dates/支払期限.cal | The 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.rule | rules/遅延の請求額.rule | The 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.kn | late_payment.ja.kn | The 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.
支払いの日を決めていない事業者間の請求書の期日。買い手が請求書を受けた日から数えて 30 日の、最後の日。Late Payment of Commercial Debts (Interest) Act 1998 の第 4 条 (2A) と (2H) を、このモジュールとして読んだもの。法令の読み方を示すものではない。payment_terms.cal の日本語の版
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
事業者間の代金の支払いが遅れたとき、売り手が請求できるもの。取り立ての費用としての定額と、基準金利に 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.kn の日本語の版
- Functions
遅れの請求
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
| Version | Published | Digest | Files | Checked |
|---|---|---|---|---|
| 1.0.0 latest | 2026-11-05 | sha256:e21b9852fe7b | 13 | its digests and its signature; passes ritsu check |
Date computations
| dates/payment_terms.cal | 791 B |
| dates/支払期限.cal | 1,002 B |
Rules
| rules/late_payment_charges.rule | 2,194 B |
| rules/遅延の請求額.rule | 2,549 B |
kaname modules
| late_payment.ja.kn | 1,873 B |
| late_payment.kn | 1,534 B |
Data and other files
| rules/sources/late-commercial-payments.md | 2,318 B |
| rules/sources/late-commercial-payments.md.fragments/table1.tsv | 105 B |
| rules/sources/late-payment-act-1998.md | 1,930 B |
About the module
| README.ja.md | 2,669 B |
| README.md | 2,371 B |
| THIRD_PARTY_NOTICES.md | 1,223 B |
| ritsu.mod | 518 B |