payroll.kr_donation_deduction
Calculates Korean donation tax deduction from earned income and donation inputs, applying statutory limits, 15%/30% rates, political-fund rules, and won-floor rounding.
Instructions
기부금 세액공제(소득세법 제59조의4제4항, 조세특례제한법 제76조)를 구한다. 근로소득금액(원 문자열) 기준 한도 안에서 특례·일반기부금 합계 1천만원 이하 15%, 초과 30%(특례 먼저), 정치자금 10만원까지 110분의 100과 초과분 15%(3천만원 초과분 25%)를 적용하고 원 미만 버린다. 고향사랑·우리사주 기부금은 한도 순서에만 반영하며 공제액은 계산하지 않는다. 종교단체 기부는 religious_donation 에 따로 넣어야 한다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| as_of | No | ||
| earned_income | Yes | ||
| esop_donation | No | 0 | |
| carryover_loss | No | 0 | |
| legal_donation | No | 0 | |
| include_proposed | No | ||
| hometown_donation | No | 0 | |
| political_donation | No | 0 | |
| religious_donation | No | 0 | |
| designated_donation | No | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| legal_limit | Yes | ||
| legal_credit | Yes | ||
| total_credit | Yes | ||
| earned_income | Yes | ||
| policy_sha256 | Yes | ||
| policy_source | Yes | ||
| policy_status | Yes | ||
| policy_version | Yes | 적용된 정책 문서의 식별 정보 | |
| policy_audit_id | Yes | ||
| designated_limit | Yes | ||
| legal_qualifying | Yes | ||
| policy_citations | Yes | 정책의 근거 조문 | |
| political_credit | Yes | ||
| designated_credit | Yes | ||
| policy_effective_to | Yes | ||
| political_qualifying | Yes | ||
| designated_qualifying | Yes | ||
| policy_effective_date | Yes | ||
| political_small_credit | Yes |