← All tool references

Finance · not_available

Barista FIRE Calculator

Calculate portfolio target from annual spending, annual part-time income, withdrawal rate, current portfolio.

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/barista-fire-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/barista-fire-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.

annual_spending · number · required
Enter annual spending.
part_time_income · number · required
Enter annual part-time income.
withdrawal_rate · number · required
Enter withdrawal rate.
current_portfolio · number · required
Enter current portfolio.
annual_return · number · required
Enter annual return.
{
    "type": "object",
    "properties": {
        "annual_spending": {
            "type": "number",
            "description": "Enter annual spending."
        },
        "part_time_income": {
            "type": "number",
            "description": "Enter annual part-time income."
        },
        "withdrawal_rate": {
            "type": "number",
            "description": "Enter withdrawal rate."
        },
        "current_portfolio": {
            "type": "number",
            "description": "Enter current portfolio."
        },
        "annual_return": {
            "type": "number",
            "description": "Enter annual return."
        }
    },
    "required": [
        "annual_spending",
        "part_time_income",
        "withdrawal_rate",
        "current_portfolio",
        "annual_return"
    ],
    "additionalProperties": false
}

Output schema

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

portfolio_target · number
Portfolio target produced by the tool.
funding_gap · number
Current funding gap produced by the tool.
years_to_target · number
Estimated years produced by the tool.
{
    "type": "object",
    "properties": {
        "portfolio_target": {
            "type": "number",
            "description": "Portfolio target produced by the tool."
        },
        "funding_gap": {
            "type": "number",
            "description": "Current funding gap produced by the tool."
        },
        "years_to_target": {
            "type": "number",
            "description": "Estimated years produced by the tool."
        }
    },
    "additionalProperties": false
}

Barista FIRE 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/barista-fire-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "annual_spending": 60000,
    "part_time_income": 24000,
    "withdrawal_rate": 4,
    "current_portfolio": 350000,
    "annual_return": 5
}'
{
    "ok": true,
    "data": {
        "slug": "barista-fire-calculator",
        "result": {
            "values": {
                "portfolio_target": 900000,
                "funding_gap": 550000,
                "years_to_target": 19.3599999999999994315658113919198513031005859375
            },
            "display": {
                "display": "900000"
            },
            "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.