payroll.kr_medical_deduction
Calculates South Korea's medical expense tax credit by subtracting 3% of gross income, then applying general, special, premature, and infertility deduction rates with caps.
Instructions
의료비 세액공제(소득세법 제59조의4제2항)를 구한다. 총급여(원 문자열)의 3% 미달분을 일반, 특수, 미숙아, 난임 순으로 차감한 뒤 일반 의료비 15%(연 700만원 한도), 본인·6세 이하·65세 이상·장애인 등 특수 15%(한도 없음), 미숙아 20%, 난임 30%를 적용하고 원 미만 버린다. 본인·65세 이상 의료비를 일반에 넣으면 700만원 한도가 걸린다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| as_of | No | ||
| premature | No | 0 | |
| infertility | No | 0 | |
| gross_income | Yes | ||
| general_medical | Yes | ||
| special_medical | No | 0 | |
| include_proposed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| threshold | Yes | ||
| gross_income | Yes | ||
| total_credit | Yes | ||
| policy_sha256 | Yes | ||
| policy_source | Yes | ||
| policy_status | Yes | ||
| total_expense | Yes | ||
| general_credit | Yes | ||
| policy_version | Yes | 적용된 정책 문서의 식별 정보 | |
| special_credit | Yes | ||
| policy_audit_id | Yes | ||
| policy_citations | Yes | 정책의 근거 조문 | |
| premature_credit | Yes | ||
| deductible_expense | Yes | ||
| infertility_credit | Yes | ||
| policy_effective_to | Yes | ||
| policy_effective_date | Yes |