Rule 遅延の請求額 v1

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

Try a case

Enter the inputs: the rows that match light up and the outputs appear. What runs is the generated code itself, and the line it would write to a log is shown as it is.


Inputs

NameTypeRangeNotes
債権額money[GBPc]1GBPc to 100_000_000GBPc
遅れた日数number1 to 1500
基準金利rate0% to 15%

Outputs

NameTypeRoundingNotes
定額の補償money[GBP]down(1GBP) (rounded down to 1GBP)
利息money[GBPc]down(1GBPc) (rounded down to 1GBPc)

Derived Values and Definitions

Intermediate values that can be placed in a table column. The expressions are as written in the source file, and the ranges are the declared ones.

NameKindExpressionRangeNotes
一日の利息Definitionhalf_up(債権額 × (8% + 基準金利) ÷ 365, 1GBPc) ((債権額 × (8% + 基準金利)) ÷ 365 rounded half up to 1GBPc)Source: 手引き
利息Definition一日の利息 × 遅れた日数

Table 定額 (policy unique)

Source: 法令 (sources/late-payment-act-1998.md, sha256:d328938a26fc0ab4)

ColumnSource
債権額Input
→ 定額の補償Output of this rule
#債権額→ 定額の補償 (money[GBP] / down(1GBP))Notes
1<100_000GBPc (less than 100_000GBPc)40GBPSource: 手引き table1
2>=100_000GBPc <1_000_000GBPc (100_000GBPc or more and less than 1_000_000GBPc)70GBPSource: 手引き table1
3>=1_000_000GBPc (1_000_000GBPc or more)100GBPSource: 手引き table1

What rulec check verified

Examples (verified)

債権額遅れた日数基準金利→ 定額の補償利息
100_000GBPc500.5%70GBP1150GBPc
99_999GBPc10%40GBP22GBPc
1_000_000GBPc304%100GBP9870GBPc

rulec check ran these 3 examples through the reference evaluator, and every one produced the declared values (E107). The examples are an executable specification.