-
Notifications
You must be signed in to change notification settings - Fork 2
国民年金の計算方法
ikuma-t edited this page Feb 3, 2022
·
5 revisions
- 国民年金は自治体や年収によらず、月額一定の額を支払う
- ひと月ごとの支払額は4月から翌年3月までが有効期間となっている。
- 退職した翌日に厚生年金の被保険者資格を喪失し、国民年金に加入するため、退職月から月毎に決まった額を支払う
- 無職から就職した場合、入社日に国民年金の被保険者資格を喪失し、厚生年金に加入するため、入社月の前月まで料金を支払う
- 退職月(Date)
- 入社月(Date)
- 年度別の国民年金保険料(Integer)
# 会計年度はfiscaliとかで対応するのが良さそう。
def 国民年金保険料総額
target_months = [*(退職月..入社月)]
# scope等は適宜作成すること
# Pensionは国民年金のテーブル(year: 年度, contribution: 保険料)
target_months.map { |month| month * Pension.where(year: month.financial_year).contribution }.sum
end
- 令和3年4月〜令和4年3月の国民年金保険料は ¥16,610
- 支払対象期間は 2021/10 ~ 2022/01 までの4ヶ月間
支払額は次のようになる
支払月 | 支払額 |
---|---|
2021/10 | ¥ 16,610 |
2021/11 | ¥ 16,610 |
2021/12 | ¥ 16,610 |
2022/01 | ¥ 16,610 |
合計 | ¥ 66,440 |
- 令和3年4月〜令和4年3月の国民年金保険料は ¥16,610
- 令和4年4月〜令和5年3月の国民年金保険料は ¥16,590
- 支払対象期間は 2022/01 ~ 2022/04 までの4ヶ月間
支払月 | 支払額 |
---|---|
2022/01 | ¥ 16,610 |
2022/02 | ¥ 16,610 |
2022/03 | ¥ 16,610 |
2022/04 | ¥ 16,590 |
合計 | ¥ 66,420 |