Overview
- Category
- Finance
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/depreciation-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/depreciation-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
asset_cost· number · required- Enter asset cost.
salvage_value· number · required- Enter salvage value.
useful_life· number · required- Enter useful life.
method· string · required-
Enter method. Accepted values:
straight_line, declining_balance. declining_rate· number · required- Enter declining-balance rate.
{
"type": "object",
"properties": {
"asset_cost": {
"type": "number",
"description": "Enter asset cost."
},
"salvage_value": {
"type": "number",
"description": "Enter salvage value."
},
"useful_life": {
"type": "number",
"description": "Enter useful life."
},
"method": {
"type": "string",
"description": "Enter method.",
"enum": [
"straight_line",
"declining_balance"
]
},
"declining_rate": {
"type": "number",
"description": "Enter declining-balance rate."
}
},
"required": [
"asset_cost",
"salvage_value",
"useful_life",
"method",
"declining_rate"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
first_year_depreciation· number- First-year depreciation produced by the tool.
book_value_end· number- Ending book value produced by the tool.
schedule· array- Depreciation schedule produced by the tool.
{
"type": "object",
"properties": {
"first_year_depreciation": {
"type": "number",
"description": "First-year depreciation produced by the tool."
},
"book_value_end": {
"type": "number",
"description": "Ending book value produced by the tool."
},
"schedule": {
"type": "array",
"description": "Depreciation schedule produced by the tool."
}
},
"additionalProperties": false
}
Depreciation Calculator worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/depreciation-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"asset_cost": 80000,
"salvage_value": 8000,
"useful_life": 7,
"method": "straight_line",
"declining_rate": 25
}'
{
"ok": true,
"data": {
"slug": "depreciation-calculator",
"result": {
"values": {
"first_year_depreciation": 10285.7099999999991268850862979888916015625,
"book_value_end": 8000,
"schedule": [
{
"year": 1,
"depreciation": 10285.7099999999991268850862979888916015625,
"ending_book_value": 69714.289999999993597157299518585205078125
},
{
"year": 2,
"depreciation": 10285.7099999999991268850862979888916015625,
"ending_book_value": 59428.5699999999997089616954326629638671875
},
{
"year": 3,
"depreciation": 10285.7099999999991268850862979888916015625,
"ending_book_value": 49142.860000000000582076609134674072265625
},
{
"year": 4,
"depreciation": 10285.7099999999991268850862979888916015625,
"ending_book_value": 38857.139999999999417923390865325927734375
},
{
"year": 5,
"depreciation": 10285.7099999999991268850862979888916015625,
"ending_book_value": 28571.4300000000002910383045673370361328125
},
{
"year": 6,
"depreciation": 10285.7099999999991268850862979888916015625,
"ending_book_value": 18285.7099999999991268850862979888916015625
},
{
"year": 7,
"depreciation": 10285.7099999999991268850862979888916015625,
"ending_book_value": 8000
}
]
},
"display": {
"display": "10285.71"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.