tax.kr_inheritance
Calculates Korean inheritance tax by applying statutory deductions, progressive rates, and generation-skipping surcharges from inheritance details.
Instructions
한국 상속세를 계산한다(상속세및증여세법 제18조제21조·제24조·제26조·제69조). 금액은 원 단위 Decimal 문자열이다. 기초·인적공제와 일괄공제 5억 중 큰 금액, 배우자공제(법정상속분 한도와 30억 중 작은 값, 최소 5억), 공제 종합한도를 적용한 뒤 1050% 누진세율로 산출하고 세대생략 할증(제27조, 산출세액 x 받은 재산 비율 x 30%, 미성년 20억 초과 40%)을 더한 뒤 신고세액공제 3%를 따로 보여 준다. gross_estate 는 사전증여 가산 후 과세가액이며 할증 비율의 분모다. 배우자가 있으나 상속받지 않았으면 has_spouse=true 를 지정한다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| as_of | No | ||
| decimals | No | ||
| rounding | No | HALF_UP | |
| has_spouse | No | ||
| gross_estate | Yes | ||
| use_lump_sum | No | ||
| elderly_count | No | ||
| timely_filing | No | ||
| children_count | No | ||
| pre_gift_added | No | 0 | |
| include_proposed | No | ||
| spouse_sole_heir | No | ||
| minor_years_total | No | ||
| spouse_inheritance | Yes | ||
| bequest_to_non_heirs | No | 0 | |
| renounced_inheritance | No | 0 | |
| spouse_legal_share_cap | No | ||
| skipped_generation_minor | No | ||
| disabled_life_years_total | No | ||
| skipped_generation_amount | No | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | Yes | ||
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| breakdown | Yes | ||
| deductions | Yes | ||
| computed_tax | Yes | ||
| gross_estate | Yes | ||
| taxable_base | Yes | ||
| filing_credit | Yes | ||
| marginal_rate | Yes | ||
| policy_sha256 | Yes | ||
| policy_source | Yes | ||
| policy_status | Yes | ||
| effective_rate | Yes | ||
| policy_version | Yes | 적용된 정책 문서의 식별 정보 | |
| policy_audit_id | Yes | ||
| policy_citations | Yes | 정책의 근거 조문 | |
| policy_effective_to | Yes | ||
| policy_effective_date | Yes | ||
| tax_after_filing_credit | Yes | ||
| generation_skip_surcharge | Yes |