finance.loan_schedule
Calculate loan repayment schedules with equal-payment or equal-principal methods from principal, annual rate, and term; apply rounding and settle the final balance.
Instructions
대출 상환 스케줄을 계산한다. method 는 EQUAL_PAYMENT(원리금균등, 기본) 또는 EQUAL_PRINCIPAL(원금균등). annual_rate 는 연이율 소수(예 0.03)이며 월이율 = 연이율 / 12, months 는 1 이상 1200 이하 정수. decimals(기본 0)자리로 rounding(기본 HALF_EVEN) 처리하고 마지막 회차가 잔액을 정리한다. 원금균등은 monthly_payment 가 null 이다. 거치기간과 중도상환은 지원하지 않는다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | EQUAL_PAYMENT | |
| months | Yes | ||
| decimals | No | ||
| rounding | No | HALF_EVEN | |
| principal | Yes | ||
| annual_rate | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| schedule | Yes | ||
| monthly_payment | Yes |