Rule receipt_stamp_duty v1

The stamp duty on a receipt for money or securities received for the price of goods sold (a Class 17, item 1 document). Receipts under 50,000 yen and those not related to business are exempt

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
amountmoney[JPY]0JPY to 1_000_000_000_000JPY
statedbool
businessbool

Outputs

NameTypeRoundingNotes
taxmoney[JPY]down(1JPY) (rounded down to 1JPY)

Table tax_table (policy unique)

Source: National Tax Agency, Tax Answer No. 7141, List of stamp duty amounts (part 2), Class 17 documents (laws and regulations as of 1 April 2026)

ColumnSource
businessInput
statedInput
amountInput
→ taxOutput of this rule
#businessstatedamount→ tax (money[JPY] / down(1JPY))Notes
1false (no)--0JPYNot related to business: exempt
2true (yes)false (no)-200JPYNo amount stated on the receipt
3true (yes)true (yes)<50_000JPY (less than 50_000JPY)0JPYExempt
4true (yes)true (yes)>=50_000JPY <=1_000_000JPY (from 50_000JPY to 1_000_000JPY)200JPY
5true (yes)true (yes)>1_000_000JPY <=2_000_000JPY (more than 1_000_000JPY and 2_000_000JPY or less)400JPY
6true (yes)true (yes)>2_000_000JPY <=3_000_000JPY (more than 2_000_000JPY and 3_000_000JPY or less)600JPY
7true (yes)true (yes)>3_000_000JPY <=5_000_000JPY (more than 3_000_000JPY and 5_000_000JPY or less)1000JPY
8true (yes)true (yes)>5_000_000JPY <=10_000_000JPY (more than 5_000_000JPY and 10_000_000JPY or less)2000JPY
9true (yes)true (yes)>10_000_000JPY <=20_000_000JPY (more than 10_000_000JPY and 20_000_000JPY or less)4000JPY
10true (yes)true (yes)>20_000_000JPY <=30_000_000JPY (more than 20_000_000JPY and 30_000_000JPY or less)6000JPY
11true (yes)true (yes)>30_000_000JPY <=50_000_000JPY (more than 30_000_000JPY and 50_000_000JPY or less)10_000JPY
12true (yes)true (yes)>50_000_000JPY <=100_000_000JPY (more than 50_000_000JPY and 100_000_000JPY or less)20_000JPY
13true (yes)true (yes)>100_000_000JPY <=200_000_000JPY (more than 100_000_000JPY and 200_000_000JPY or less)40_000JPY
14true (yes)true (yes)>200_000_000JPY <=300_000_000JPY (more than 200_000_000JPY and 300_000_000JPY or less)60_000JPY
15true (yes)true (yes)>300_000_000JPY <=500_000_000JPY (more than 300_000_000JPY and 500_000_000JPY or less)100_000JPY
16true (yes)true (yes)>500_000_000JPY <=1_000_000_000JPY (more than 500_000_000JPY and 1_000_000_000JPY or less)150_000JPY
17true (yes)true (yes)>1_000_000_000JPY (more than 1_000_000_000JPY)200_000JPY

A - means the column may be any value.

What rulec check verified

Examples (verified)

amountstatedbusiness→ taxNotes
49_999JPYtruetrue0JPYUnder 50,000 yen is exempt
50_000JPYtruetrue200JPY
1_000_000JPYtruetrue200JPY1,000,000 yen or less
1_000_001JPYtruetrue400JPYMore than 1,000,000 yen
0JPYfalsetrue200JPYNo amount stated
3_000_000JPYtruefalse0JPYNot related to business

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