← All tool references

Finance · not_available

Savings Withdrawal Calculator

Savings Withdrawal with transparent inputs and reviewable results.

Open public tool

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/savings-withdrawal-calculator

View this descriptor as JSON

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/savings-withdrawal-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.

starting_balance · number · required
Enter starting balance.
monthly_withdrawal · number · required
Enter monthly withdrawal.
annual_return · number · required
Enter annual return.
annual_inflation · number · required
Enter annual withdrawal inflation.
years · number · required
Enter years.
{
    "type": "object",
    "properties": {
        "starting_balance": {
            "type": "number",
            "description": "Enter starting balance."
        },
        "monthly_withdrawal": {
            "type": "number",
            "description": "Enter monthly withdrawal."
        },
        "annual_return": {
            "type": "number",
            "description": "Enter annual return."
        },
        "annual_inflation": {
            "type": "number",
            "description": "Enter annual withdrawal inflation."
        },
        "years": {
            "type": "number",
            "description": "Enter years."
        }
    },
    "required": [
        "starting_balance",
        "monthly_withdrawal",
        "annual_return",
        "annual_inflation",
        "years"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

ending_balance · number
Estimated ending balance produced by the tool.
total_withdrawals · number
Total withdrawals produced by the tool.
depletion_year · string
Estimated depletion year produced by the tool.
schedule · array
Yearly schedule produced by the tool.
{
    "type": "object",
    "properties": {
        "ending_balance": {
            "type": "number",
            "description": "Estimated ending balance produced by the tool."
        },
        "total_withdrawals": {
            "type": "number",
            "description": "Total withdrawals produced by the tool."
        },
        "depletion_year": {
            "type": "string",
            "description": "Estimated depletion year produced by the tool."
        },
        "schedule": {
            "type": "array",
            "description": "Yearly schedule produced by the tool."
        }
    },
    "additionalProperties": false
}

Savings Withdrawal 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/savings-withdrawal-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "starting_balance": 500000,
    "monthly_withdrawal": 2500,
    "annual_return": 5,
    "annual_inflation": 2.5,
    "years": 25
}'
{
    "ok": true,
    "data": {
        "slug": "savings-withdrawal-calculator",
        "result": {
            "values": {
                "ending_balance": 0,
                "total_withdrawals": 867657.53000000002793967723846435546875,
                "depletion_year": "Year 23",
                "schedule": [
                    {
                        "year": 1,
                        "balance": 494883.8099999999976716935634613037109375,
                        "monthly_withdrawal": 2500
                    },
                    {
                        "year": 2,
                        "balance": 488738.4400000000023283064365386962890625,
                        "monthly_withdrawal": 2562.5
                    },
                    {
                        "year": 3,
                        "balance": 481492.0399999999790452420711517333984375,
                        "monthly_withdrawal": 2626.55999999999994543031789362430572509765625
                    },
                    {
                        "year": 4,
                        "balance": 473068.630000000004656612873077392578125,
                        "monthly_withdrawal": 2692.23000000000001818989403545856475830078125
                    },
                    {
                        "year": 5,
                        "balance": 463387.8200000000069849193096160888671875,
                        "monthly_withdrawal": 2759.53000000000020008883439004421234130859375
                    },
                    {
                        "year": 6,
                        "balance": 452364.630000000004656612873077392578125,
                        "monthly_withdrawal": 2828.51999999999998181010596454143524169921875
                    },
                    {
                        "year": 7,
                        "balance": 439909.1900000000023283064365386962890625,
                        "monthly_withdrawal": 2899.23000000000001818989403545856475830078125
                    },
                    {
                        "year": 8,
                        "balance": 425926.53000000002793967723846435546875,
                        "monthly_withdrawal": 2971.7100000000000363797880709171295166015625
                    }
                ]
            },
            "display": {
                "display": "0"
            },
            "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.