Catalog/acct-depreciation-ddb

Finance

Declining-balance w/ SL switch API

Returns a declining-balance depreciation schedule (200%/150%/custom factor) that automatically switches to straight-line when that maximizes expense, never dropping below salvage. Answers 'What is the double-declining-balance schedule?', 'When does it switch to straight-line?'.

Price$0.06per request
MethodPOST
Route/v1/finance/depreciation-ddb
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
depreciationdeclining-balancedouble-decliningddb150-percentaccountingscheduletax
API URLhttps://x402.hexl.dev/v1/finance/depreciation-ddb
Integration docs
Example request
{
  "cost": 50000,
  "salvage": 5000,
  "life": 5,
  "factor": 2
}
Example response
{
  "method": "double-declining-balance with switch to straight-line",
  "cost": 50000,
  "salvage": 5000,
  "life": 5,
  "factor": 2,
  "decliningRate": 0.4,
  "switchToStraightLineYear": null,
  "totalDepreciation": 45000,
  "schedule": [
    {
      "year": 1,
      "method": "declining-balance",
      "depreciationExpense": 20000,
      "accumulatedDepreciation": 20000,
      "bookValue": 30000
    },
    {
      "year": 2,
      "method": "declining-balance",
      "depreciationExpense": 12000,
      "accumulatedDepreciation": 32000,
      "bookValue": 18000
    },
    {
      "year": 3,
      "method": "declining-balance",
      "depreciationExpense": 7200,
      "accumulatedDepreciation": 39200,
      "bookValue": 10800
    },
    {
      "year": 4,
      "method": "declining-balance",
      "depreciationExpense": 4320,
      "accumulatedDepreciation": 43520,
      "bookValue": 6480
    },
    {
      "year": 5,
      "method": "declining-balance",
      "depreciationExpense": 1480,
      "accumulatedDepreciation": 45000,
      "bookValue": 5000
    }
  ],
  "interpretation": "Declining-balance throughout; no switch needed."
}
Input schema
{
  "type": "object",
  "required": [
    "cost",
    "life"
  ],
  "properties": {
    "cost": {
      "type": "number",
      "examples": [
        50000
      ]
    },
    "salvage": {
      "type": "number",
      "examples": [
        5000
      ]
    },
    "life": {
      "type": "integer",
      "examples": [
        5
      ]
    },
    "factor": {
      "type": "number",
      "examples": [
        2,
        1.5
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}