accounting.depreciation_straight_line
Calculates a straight-line depreciation schedule from asset cost, salvage value, and useful life, applying specified rounding and fully depreciating the remaining balance in the final year.
Instructions
정액법 감가상각 스케줄을 계산한다. 연 감가비 = (취득원가 - 잔존가치) / 내용연수(life_years, 1 이상 정수), 취득원가와 잔존가치는 유한한 0 이상 Decimal 문자열이며 취득원가는 잔존가치 이상이어야 한다. decimals(기본 0)자리로 rounding(기본 HALF_EVEN) 처리하되 감가비는 남은 상각액을 넘지 않는다. 마지막 해는 소수 자릿수와 관계없이 잔액을 정확히 상각한다. 월할이나 기중 취득 안분은 지원하지 않는다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| salvage | Yes | ||
| decimals | No | ||
| rounding | No | HALF_EVEN | |
| life_years | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| schedule | Yes | ||
| annual_expense | Yes |