賞与の社会保険料と源泉所得税
calculate_bonusPremiums and income tax on a 賞与. Both work differently from monthly pay and are routinely got wrong.
Premiums are charged on 標準賞与額 (the bonus truncated to the thousand yen) under two caps that behave differently: health, long-term care and child support cap at 5,730,000 yen CUMULATIVELY across the fiscal year from 1 April, while pension caps at 1,500,000 yen PER PAYMENT. The annual cap cannot be applied without fiscal_year_to_date, so pass it whenever an earlier bonus was paid in the same fiscal year.
Withholding tax on a bonus is derived from the PREVIOUS month's pay, not from the bonus itself. Set include_tax to also compute it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| age | No | Age in years. Either this or birth_date is required. Prefer birth_date. | |
| as_of | No | YYYY-MM-DD. Which rate table to use. Rates change every March, so a bonus paid in a previous year needs the table that was in force then; the call is refused rather than answered with today's rates. | |
| bonus | Yes | Gross bonus in yen. | |
| column | No | Withholding column for the tax half: 甲 when a 扶養控除等申告書 was filed (the normal case), 乙 when it was not. 乙 has its own rate table. Defaults to 甲. | |
| birth_date | No | Date of birth, YYYY-MM-DD. Strongly preferred over `age`: 年齢計算ニ関スル法律 puts the attainment of an age on the day *before* the birthday, so someone born on the 1st of a month crosses a threshold in the previous month and their premium changes a month earlier than a naive calculation gives. | |
| dependants | No | ||
| prefecture | Yes | Prefecture of the employer's 適用事業所 — English ("Tokyo"), Japanese ("東京" or "東京都"), or JIS code 1-47. Health insurance rates differ by prefecture; pension does not. | |
| include_tax | No | Also compute withholding tax. Requires previous_month_pay. | |
| previous_month_pay | No | Gross pay in the month before the bonus. The tax rate is derived from this. | |
| fiscal_year_to_date | No | 標準賞与額 already paid since 1 April this fiscal year. Needed for the annual health cap. | |
| previous_month_insurance | No | Social insurance deducted from that previous month's pay. |