規則 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
試してみる
入力を入れると、当てはまった行に色が付き、結果が出ます。動くのは生成コードそのもので、ログに書かれる一行もそのまま出ます。
入力
| 名前 | 型 | 範囲 | 注記 |
|---|---|---|---|
| amount | money[JPY] | 0JPY 〜 1_000_000_000_000JPY | |
| stated | bool | ||
| business | bool |
出力
| 名前 | 型 | 丸め | 注記 |
|---|---|---|---|
| tax | money[JPY] | down(1JPY)(1JPY単位で切り捨て) |
表 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)
| 列 | 出どころ |
|---|---|
| business | 入力 |
| stated | 入力 |
| amount | 入力 |
| → tax | この規則の出力 |
| # | business | stated | amount | → tax(money[JPY] / down(1JPY)) | 注記 |
|---|---|---|---|---|---|
| 1 | false(いいえ) | - | - | 0JPY | Not related to business: exempt |
| 2 | true(はい) | false(いいえ) | - | 200JPY | No amount stated on the receipt |
| 3 | true(はい) | true(はい) | <50_000JPY(50_000JPY未満) | 0JPY | Exempt |
| 4 | true(はい) | true(はい) | >=50_000JPY <=1_000_000JPY(50_000JPY以上 1_000_000JPY以下) | 200JPY | |
| 5 | true(はい) | true(はい) | >1_000_000JPY <=2_000_000JPY(1_000_000JPYより大きく 2_000_000JPY以下) | 400JPY | |
| 6 | true(はい) | true(はい) | >2_000_000JPY <=3_000_000JPY(2_000_000JPYより大きく 3_000_000JPY以下) | 600JPY | |
| 7 | true(はい) | true(はい) | >3_000_000JPY <=5_000_000JPY(3_000_000JPYより大きく 5_000_000JPY以下) | 1000JPY | |
| 8 | true(はい) | true(はい) | >5_000_000JPY <=10_000_000JPY(5_000_000JPYより大きく 10_000_000JPY以下) | 2000JPY | |
| 9 | true(はい) | true(はい) | >10_000_000JPY <=20_000_000JPY(10_000_000JPYより大きく 20_000_000JPY以下) | 4000JPY | |
| 10 | true(はい) | true(はい) | >20_000_000JPY <=30_000_000JPY(20_000_000JPYより大きく 30_000_000JPY以下) | 6000JPY | |
| 11 | true(はい) | true(はい) | >30_000_000JPY <=50_000_000JPY(30_000_000JPYより大きく 50_000_000JPY以下) | 10_000JPY | |
| 12 | true(はい) | true(はい) | >50_000_000JPY <=100_000_000JPY(50_000_000JPYより大きく 100_000_000JPY以下) | 20_000JPY | |
| 13 | true(はい) | true(はい) | >100_000_000JPY <=200_000_000JPY(100_000_000JPYより大きく 200_000_000JPY以下) | 40_000JPY | |
| 14 | true(はい) | true(はい) | >200_000_000JPY <=300_000_000JPY(200_000_000JPYより大きく 300_000_000JPY以下) | 60_000JPY | |
| 15 | true(はい) | true(はい) | >300_000_000JPY <=500_000_000JPY(300_000_000JPYより大きく 500_000_000JPY以下) | 100_000JPY | |
| 16 | true(はい) | true(はい) | >500_000_000JPY <=1_000_000_000JPY(500_000_000JPYより大きく 1_000_000_000JPY以下) | 150_000JPY | |
| 17 | true(はい) | true(はい) | >1_000_000_000JPY(1_000_000_000JPYより大きい) | 200_000JPY |
- は、その列がどの値でもよいことを表します。
rulec check が確かめたこと
- どの入力の組合せも、いずれかの行に当てはまります(E101 完全性)
- どの入力にも当てはまらない行はありません(E102)
- 二つ以上の行に同時に当てはまる入力はありません(E105 重なり)。行の並べ替えは意味を変えません
例(検証済み)
| amount | stated | business | → tax | 注記 |
|---|---|---|---|---|
| 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 |
この 6 件は rulec check が参照評価器で実行し、すべて宣言どおりの値になりました(E107)。例は実行される仕様です。