← All tool references

Finance · not_available

Savings Goal Calculator

Savings Goal with subject-specific controls, reviewable intermediate detail, and private browser processing.

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-goal-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-goal-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_contribution · number · required
Enter monthly contribution.
annual_return · number · required
Enter annual return.
years · number · required
Enter years.
{
    "type": "object",
    "properties": {
        "starting_balance": {
            "type": "number",
            "description": "Enter starting balance."
        },
        "monthly_contribution": {
            "type": "number",
            "description": "Enter monthly contribution."
        },
        "annual_return": {
            "type": "number",
            "description": "Enter annual return."
        },
        "years": {
            "type": "number",
            "description": "Enter years."
        }
    },
    "required": [
        "starting_balance",
        "monthly_contribution",
        "annual_return",
        "years"
    ],
    "additionalProperties": false
}

Output schema

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

ending_balance · number
Ending balance produced by the tool.
contributions · number
Contributions produced by the tool.
growth · number
Estimated growth produced by the tool.
schedule · array
Yearly schedule produced by the tool.
{
    "type": "object",
    "properties": {
        "ending_balance": {
            "type": "number",
            "description": "Ending balance produced by the tool."
        },
        "contributions": {
            "type": "number",
            "description": "Contributions produced by the tool."
        },
        "growth": {
            "type": "number",
            "description": "Estimated growth produced by the tool."
        },
        "schedule": {
            "type": "array",
            "description": "Yearly schedule produced by the tool."
        }
    },
    "additionalProperties": false
}

Savings Goal 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-goal-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "starting_balance": 15000,
    "monthly_contribution": 450,
    "annual_return": 6,
    "years": 15
}'
{
    "ok": true,
    "data": {
        "slug": "savings-goal-calculator",
        "result": {
            "values": {
                "ending_balance": 167679.8200000000069849193096160888671875,
                "contributions": 96000,
                "growth": 71679.8200000000069849193096160888671875,
                "schedule": [
                    {
                        "year": 1,
                        "balance": 21476.169999999998253770172595977783203125
                    },
                    {
                        "year": 2,
                        "balance": 28351.77999999999883584678173065185546875
                    },
                    {
                        "year": 3,
                        "balance": 35651.4599999999991268850862979888916015625
                    },
                    {
                        "year": 4,
                        "balance": 43401.360000000000582076609134674072265625
                    },
                    {
                        "year": 5,
                        "balance": 51629.2699999999967985786497592926025390625
                    },
                    {
                        "year": 6,
                        "balance": 60364.6500000000014551915228366851806640625
                    },
                    {
                        "year": 7,
                        "balance": 69638.8099999999976716935634613037109375
                    },
                    {
                        "year": 8,
                        "balance": 79484.979999999995925463736057281494140625
                    }
                ]
            },
            "display": {
                "display": "167679.82"
            },
            "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.