Rule health_insurance_premium v1

The health insurance premium of Kyokai Kenpo (the Japan Health Insurance Association). From the monthly pay it takes the standard monthly remuneration, multiplies by the rate and halves it, and gives the amount deducted from salary and the amount paid in cash

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
monthlymoney[JPY]0JPY to 10_000_000JPY
raterate0% to 20%Changes with the prefecture and the fiscal year, so it is an input
care_raterate0% to 5%The part added for Category 2 insured persons of long-term care insurance (aged 40 to 64)
carebool

Outputs

NameTypeRoundingNotes
stdmoney[JPY]down(1JPY) (rounded down to 1JPY)
deductmoney[JPY]half_down(1JPY) (rounded half down to 1JPY)Source: note (1) of the premium table. Deducted from salary, 50 sen or less is rounded down and more than 50 sen up
cashmoney[JPY]half_up(1JPY) (rounded half up to 1JPY)Source: note (2) of the premium table. Paid in cash, less than 50 sen is rounded down and 50 sen or more up

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
bothDerived valuerate + care_rate0% to 25%
halfDefinitionstd * applied_rate / 2Half of the full amount. The fraction below one yen is settled by the rounding of the two outputs above
deductDefinitionhalf
cashDefinitionhalf

That the declared range of every derived value contains all the values actually reachable from the input ranges was verified by rulec check (E112).

Table grade (policy unique)

Source: Japan Health Insurance Association, premium table of health insurance and employees' pension insurance from March 2026 (paid in April), Tokyo branch

ColumnSource
monthlyInput
→ stdOutput of this rule
#monthly→ std (money[JPY] / down(1JPY))
1<63_000JPY (less than 63_000JPY)58_000JPY
2>=63_000JPY <73_000JPY (63_000JPY or more and less than 73_000JPY)68_000JPY
3>=73_000JPY <83_000JPY (73_000JPY or more and less than 83_000JPY)78_000JPY
4>=83_000JPY <93_000JPY (83_000JPY or more and less than 93_000JPY)88_000JPY
5>=93_000JPY <101_000JPY (93_000JPY or more and less than 101_000JPY)98_000JPY
6>=101_000JPY <107_000JPY (101_000JPY or more and less than 107_000JPY)104_000JPY
7>=107_000JPY <114_000JPY (107_000JPY or more and less than 114_000JPY)110_000JPY
8>=114_000JPY <122_000JPY (114_000JPY or more and less than 122_000JPY)118_000JPY
9>=122_000JPY <130_000JPY (122_000JPY or more and less than 130_000JPY)126_000JPY
10>=130_000JPY <138_000JPY (130_000JPY or more and less than 138_000JPY)134_000JPY
11>=138_000JPY <146_000JPY (138_000JPY or more and less than 146_000JPY)142_000JPY
12>=146_000JPY <155_000JPY (146_000JPY or more and less than 155_000JPY)150_000JPY
13>=155_000JPY <165_000JPY (155_000JPY or more and less than 165_000JPY)160_000JPY
14>=165_000JPY <175_000JPY (165_000JPY or more and less than 175_000JPY)170_000JPY
15>=175_000JPY <185_000JPY (175_000JPY or more and less than 185_000JPY)180_000JPY
16>=185_000JPY <195_000JPY (185_000JPY or more and less than 195_000JPY)190_000JPY
17>=195_000JPY <210_000JPY (195_000JPY or more and less than 210_000JPY)200_000JPY
18>=210_000JPY <230_000JPY (210_000JPY or more and less than 230_000JPY)220_000JPY
19>=230_000JPY <250_000JPY (230_000JPY or more and less than 250_000JPY)240_000JPY
20>=250_000JPY <270_000JPY (250_000JPY or more and less than 270_000JPY)260_000JPY
21>=270_000JPY <290_000JPY (270_000JPY or more and less than 290_000JPY)280_000JPY
22>=290_000JPY <310_000JPY (290_000JPY or more and less than 310_000JPY)300_000JPY
23>=310_000JPY <330_000JPY (310_000JPY or more and less than 330_000JPY)320_000JPY
24>=330_000JPY <350_000JPY (330_000JPY or more and less than 350_000JPY)340_000JPY
25>=350_000JPY <370_000JPY (350_000JPY or more and less than 370_000JPY)360_000JPY
26>=370_000JPY <395_000JPY (370_000JPY or more and less than 395_000JPY)380_000JPY
27>=395_000JPY <425_000JPY (395_000JPY or more and less than 425_000JPY)410_000JPY
28>=425_000JPY <455_000JPY (425_000JPY or more and less than 455_000JPY)440_000JPY
29>=455_000JPY <485_000JPY (455_000JPY or more and less than 485_000JPY)470_000JPY
30>=485_000JPY <515_000JPY (485_000JPY or more and less than 515_000JPY)500_000JPY
31>=515_000JPY <545_000JPY (515_000JPY or more and less than 545_000JPY)530_000JPY
32>=545_000JPY <575_000JPY (545_000JPY or more and less than 575_000JPY)560_000JPY
33>=575_000JPY <605_000JPY (575_000JPY or more and less than 605_000JPY)590_000JPY
34>=605_000JPY <635_000JPY (605_000JPY or more and less than 635_000JPY)620_000JPY
35>=635_000JPY <665_000JPY (635_000JPY or more and less than 665_000JPY)650_000JPY
36>=665_000JPY <695_000JPY (665_000JPY or more and less than 695_000JPY)680_000JPY
37>=695_000JPY <730_000JPY (695_000JPY or more and less than 730_000JPY)710_000JPY
38>=730_000JPY <770_000JPY (730_000JPY or more and less than 770_000JPY)750_000JPY
39>=770_000JPY <810_000JPY (770_000JPY or more and less than 810_000JPY)790_000JPY
40>=810_000JPY <855_000JPY (810_000JPY or more and less than 855_000JPY)830_000JPY
41>=855_000JPY <905_000JPY (855_000JPY or more and less than 905_000JPY)880_000JPY
42>=905_000JPY <955_000JPY (905_000JPY or more and less than 955_000JPY)930_000JPY
43>=955_000JPY <1_005_000JPY (955_000JPY or more and less than 1_005_000JPY)980_000JPY
44>=1_005_000JPY <1_055_000JPY (1_005_000JPY or more and less than 1_055_000JPY)1_030_000JPY
45>=1_055_000JPY <1_115_000JPY (1_055_000JPY or more and less than 1_115_000JPY)1_090_000JPY
46>=1_115_000JPY <1_175_000JPY (1_115_000JPY or more and less than 1_175_000JPY)1_150_000JPY
47>=1_175_000JPY <1_235_000JPY (1_175_000JPY or more and less than 1_235_000JPY)1_210_000JPY
48>=1_235_000JPY <1_295_000JPY (1_235_000JPY or more and less than 1_295_000JPY)1_270_000JPY
49>=1_295_000JPY <1_355_000JPY (1_295_000JPY or more and less than 1_355_000JPY)1_330_000JPY
50>=1_355_000JPY (1_355_000JPY or more)1_390_000JPY

What rulec check verified

Table applied (policy unique)

For Category 2 insured persons of long-term care insurance, the rate is the health insurance rate plus the care insurance rate

ColumnSource
careInput
→ applied_rate(this table only)
#care→ applied_rate (rate)
1true (yes)both
2false (no)rate

What rulec check verified

Examples (verified)

monthlyratecare_ratecare→ stddeductcashNotes
60_000JPY9.85%1.62%false58_000JPY2856JPY2857JPYHalf is 2,856.5 yen. Deducted from salary it is rounded down, paid in cash it is rounded up
134_000JPY9.85%1.62%false134_000JPY6599JPY6600JPYHalf is 6,599.5 yen
134_000JPY9.85%1.62%true134_000JPY7685JPY7685JPYHalf is 7,684.9 yen. Both round up
300_000JPY9.85%1.62%true300_000JPY17_205JPY17_205JPYHalf is 17,205.0 yen

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