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
| Name | Type | Range | Notes |
|---|---|---|---|
| amount | money[JPY] | 0JPY to 1_000_000_000_000JPY | |
| stated | bool | ||
| business | bool |
Outputs
| Name | Type | Rounding | Notes |
|---|---|---|---|
| tax | money[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)
| Column | Source |
|---|---|
| business | Input |
| stated | Input |
| amount | Input |
| → tax | Output of this rule |
| # | business | stated | amount | → tax (money[JPY] / down(1JPY)) | Notes |
|---|---|---|---|---|---|
| 1 | false (no) | - | - | 0JPY | Not related to business: exempt |
| 2 | true (yes) | false (no) | - | 200JPY | No amount stated on the receipt |
| 3 | true (yes) | true (yes) | <50_000JPY (less than 50_000JPY) | 0JPY | Exempt |
| 4 | true (yes) | true (yes) | >=50_000JPY <=1_000_000JPY (from 50_000JPY to 1_000_000JPY) | 200JPY | |
| 5 | true (yes) | true (yes) | >1_000_000JPY <=2_000_000JPY (more than 1_000_000JPY and 2_000_000JPY or less) | 400JPY | |
| 6 | true (yes) | true (yes) | >2_000_000JPY <=3_000_000JPY (more than 2_000_000JPY and 3_000_000JPY or less) | 600JPY | |
| 7 | true (yes) | true (yes) | >3_000_000JPY <=5_000_000JPY (more than 3_000_000JPY and 5_000_000JPY or less) | 1000JPY | |
| 8 | true (yes) | true (yes) | >5_000_000JPY <=10_000_000JPY (more than 5_000_000JPY and 10_000_000JPY or less) | 2000JPY | |
| 9 | true (yes) | true (yes) | >10_000_000JPY <=20_000_000JPY (more than 10_000_000JPY and 20_000_000JPY or less) | 4000JPY | |
| 10 | true (yes) | true (yes) | >20_000_000JPY <=30_000_000JPY (more than 20_000_000JPY and 30_000_000JPY or less) | 6000JPY | |
| 11 | true (yes) | true (yes) | >30_000_000JPY <=50_000_000JPY (more than 30_000_000JPY and 50_000_000JPY or less) | 10_000JPY | |
| 12 | true (yes) | true (yes) | >50_000_000JPY <=100_000_000JPY (more than 50_000_000JPY and 100_000_000JPY or less) | 20_000JPY | |
| 13 | true (yes) | true (yes) | >100_000_000JPY <=200_000_000JPY (more than 100_000_000JPY and 200_000_000JPY or less) | 40_000JPY | |
| 14 | true (yes) | true (yes) | >200_000_000JPY <=300_000_000JPY (more than 200_000_000JPY and 300_000_000JPY or less) | 60_000JPY | |
| 15 | true (yes) | true (yes) | >300_000_000JPY <=500_000_000JPY (more than 300_000_000JPY and 500_000_000JPY or less) | 100_000JPY | |
| 16 | true (yes) | true (yes) | >500_000_000JPY <=1_000_000_000JPY (more than 500_000_000JPY and 1_000_000_000JPY or less) | 150_000JPY | |
| 17 | true (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
- Every combination of inputs matches some row (E101 completeness)
- There is no row that can never match (E102 unreachable row)
- No input matches two or more rows at once (E105 overlap). Reordering the rows does not change the meaning
Examples (verified)
| amount | stated | business | → tax | Notes |
|---|---|---|---|---|
| 49_999JPY | true | true | 0JPY | Under 50,000 yen is exempt |
| 50_000JPY | true | true | 200JPY | |
| 1_000_000JPY | true | true | 200JPY | 1,000,000 yen or less |
| 1_000_001JPY | true | true | 400JPY | More than 1,000,000 yen |
| 0JPY | false | true | 200JPY | No amount stated |
| 3_000_000JPY | true | false | 0JPY | Not 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.