モジュール / ghcr.io / i2y

ritsu-japan-social-insurance

The health insurance and employees' pension premiums of Japan, as rules of rulec, in English and in Japanese

  • i2y/ritsu の署名を確かめました
  • ダイジェストが一致
  • ritsu check を通ります
  • データ 1 件を SHA-256 で固定
  • 公開 2026-11-07
  • ritsu 0.41.0 以降が要ります
  • ソース

入っているもの

名前説明試す、コードを読む
health_insurance_premiumThe 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
pension_insurance_premiumThe employees' pension insurance premium. 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
健康保険料協会けんぽの健康保険料。報酬月額から標準報酬月額を引き、料率を掛けて折半し、給与から控除する額と現金で納める額を出す
厚生年金保険料厚生年金保険料。報酬月額から標準報酬月額を引き、料率を掛けて折半し、給与から控除する額と現金で納める額を出す

日本の健康保険料と厚生年金保険料を、ritsu のモジュールが使える rulec の規則にしたものです。どの規則にも英語の版と日本語の版があり、二つの答えは同じです。規則は報酬月額から等級の表で標準報酬月額を引き、料率を掛けて折半します。そこから、給与から控除する額と、現金で納める額を出します。二つは 1 円未満の端数の扱いが違います。

英語の版日本語の版保険料表
health_insurance_premium.rule健康保険料.rule協会けんぽ(全国健康保険協会)の健康保険協会の保険料額表、令和 8 年 3 月分(4 月納付分)から、東京支部
pension_insurance_premium.rule厚生年金保険料.rule厚生年金保険日本年金機構の保険料額表、令和 2 年 9 月分(10 月納付分)から、令和 8 年度版(固定あり)

料率は入力です。健康保険料率は都道府県と年度で変わり、厚生年金は基金によって違うので、規則には持たせていません。当てはまる料率を渡してください。規則は表を転記したもので、原文と見比べて読むためのものです。法律や税の助言ではありません。

使い方

モジュールを依存に足し、署名を確かめる行を ritsu.mod に書いて、取ってきます。

$ ritsu mod add japan_social_insurance ghcr.io/i2y/ritsu-japan-social-insurance@1.0.1
signature "ghcr.io/i2y/ritsu-japan-social-insurance" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"
$ ritsu mod fetch

あとは、自分の kaname や dandori のコードから読みます。

use rule pension from "@japan_social_insurance/pension_insurance_premium.rule"

出典

sources/nenkin/ のコピーの出どころは THIRD_PARTY_NOTICES.md に書きました。健康保険料の規則は、表の名前をコメントに書いていて、コピーは持ちません。

規則のファイルは、ritsu と同じく、MIT License か Apache License 2.0 の好きなほうで使えます。

版

法令の変更に合わせる版は、マイナーの版を上げます。ファイルの名前を変える版、ファイルを消す版、規則の入力や出力を変える版は、メジャーの版を上げます。 この README の言葉だけを直す版は、パッチの版を上げます。

規則 4 本

ページは、この版のファイルからそれぞれの言語が描きました。

health_insurance_premium

health_insurance_premium.rule規則

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

入力
monthly (0〜10,000,000 JPY); rate (0〜2,000 %); care_rate (0〜500 %); care
出力
std (58,000〜1,390,000 JPY); deduct (0〜173,750 JPY); cash (0〜173,750 JPY)

pension_insurance_premium

pension_insurance_premium.rule規則

The employees' pension insurance premium. 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

入力
monthly (0〜10,000,000 JPY); rate (0〜300 %)
出力
std (88,000〜650,000 JPY); deduct (0〜97,500 JPY); cash (0〜97,500 JPY)
出典
sources/nenkin/R08ryougaku.xlsx

健康保険料

健康保険料.rule規則

協会けんぽの健康保険料。報酬月額から標準報酬月額を引き、料率を掛けて折半し、給与から控除する額と現金で納める額を出す

入力
報酬月額 (0〜10,000,000 円); 健康保険料率 (0〜2,000 %); 介護保険料率 (0〜500 %); 介護該当
出力
標準報酬月額 (58,000〜1,390,000 円); 給与控除額 (0〜173,750 円); 現金納付額 (0〜173,750 円)

厚生年金保険料

厚生年金保険料.rule規則

厚生年金保険料。報酬月額から標準報酬月額を引き、料率を掛けて折半し、給与から控除する額と現金で納める額を出す

入力
報酬月額 (0〜10,000,000 円); 料率 (0〜300 %)
出力
標準報酬月額 (88,000〜650,000 円); 給与控除額 (0〜97,500 円); 現金納付額 (0〜97,500 円)
出典
sources/nenkin/R08ryougaku.xlsx

試す

比べる元
1.0.0
比べる先

どの答えも変わりません。

ritsu はすべての入力を比べるか、決められないと言います。一部を試すことはしません。

振る舞い
規則 4 のうち 0 で答えが変わります
インターフェース
変わりません
ファイル
3 変わった、7 同じ。require は変わりません

health_insurance_premium.rule

同じ答え

pension_insurance_premium.rule

同じ答え

健康保険料.rule

同じ答え

厚生年金保険料.rule

同じ答え

インターフェース

報告の全文(ritsu mod diff --format markdown と同じ)
  • ファイル:変わった 3、同じ 7
  • require:変わりません
変わり方ファイル
変わったREADME.ja.md
変わったREADME.md
変わったritsu.mod

振る舞い

  • health_insurance_premium.rule (rulec):同じ答えです
  • pension_insurance_premium.rule (rulec):同じ答えです
  • 健康保険料.rule (rulec):同じ答えです
  • 厚生年金保険料.rule (rulec):同じ答えです

インターフェース

  • README.ja.md (ダイジェスト):中身が変わりました
  • README.md (ダイジェスト):中身が変わりました

振る舞いにもインターフェースにも、違いはありません。

版 2 個

版公開ダイジェストファイル確かめたこと
1.0.1 最新2026-11-07sha256:4ab1676199de10ダイジェストと署名、ritsu check を通過
1.0.02026-11-05sha256:37b2e68974d610ダイジェストと署名、ritsu check を通過

規則

データとそのほかのファイル

モジュールについて

README.ja.md2,607 バイト
README.md2,352 バイト
THIRD_PARTY_NOTICES.md979 バイト
ritsu.mod495 バイト