payroll.kr_housing_loan_deduction
Calculates the deductible amount of long-term housing mortgage interest for Korean income tax using payment, term, fixed-rate, and non-grace inputs, applying statutory limits by term and loan type.
Instructions
장기주택저당차입금 이자상환액 소득공제(소득세법 제52조제5항·제6항)의 공제 대상액을 구한다. 이자상환액(원 문자열), 상환기간(년), 고정금리와 비거치식 여부로 한도(15년 이상 고정금리+비거치식 2천만원 등)를 정해 그 이하만 인정하며, 10년 미만과 10~15년 변동·거치식은 0이다(limit_key 는 빈 문자열). 소득공제액이지 세액이 아니므로 세율을 곱해야 한다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| as_of | No | ||
| term_years | Yes | ||
| is_non_grace | Yes | ||
| interest_paid | Yes | ||
| is_fixed_rate | Yes | ||
| include_proposed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| limit | Yes | ||
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| limit_key | Yes | ||
| interest_paid | Yes | ||
| policy_sha256 | Yes | ||
| policy_source | Yes | ||
| policy_status | Yes | ||
| policy_version | Yes | 적용된 정책 문서의 식별 정보 | |
| policy_audit_id | Yes | ||
| policy_citations | Yes | 정책의 근거 조문 | |
| deductible_amount | Yes | ||
| policy_effective_to | Yes | ||
| policy_effective_date | Yes |