← All tool references

Finance · not_available

Finance Calculator

Finance 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/finance-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/finance-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.

calculation · string · required
Enter calculation. Accepted values: future_value, present_value, payment.
present_value · number · required
Enter present value.
payment · number · required
Enter periodic payment.
annual_rate · number · required
Enter annual rate.
years · number · required
Enter years.
periods_per_year · number · required
Enter periods per year.
{
    "type": "object",
    "properties": {
        "calculation": {
            "type": "string",
            "description": "Enter calculation.",
            "enum": [
                "future_value",
                "present_value",
                "payment"
            ]
        },
        "present_value": {
            "type": "number",
            "description": "Enter present value."
        },
        "payment": {
            "type": "number",
            "description": "Enter periodic payment."
        },
        "annual_rate": {
            "type": "number",
            "description": "Enter annual rate."
        },
        "years": {
            "type": "number",
            "description": "Enter years."
        },
        "periods_per_year": {
            "type": "number",
            "description": "Enter periods per year."
        }
    },
    "required": [
        "calculation",
        "present_value",
        "payment",
        "annual_rate",
        "years",
        "periods_per_year"
    ],
    "additionalProperties": false
}

Output schema

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

result · number
Calculated result produced by the tool.
total_contributions · number
Total contributions produced by the tool.
growth · number
Estimated growth produced by the tool.
{
    "type": "object",
    "properties": {
        "result": {
            "type": "number",
            "description": "Calculated result produced by the tool."
        },
        "total_contributions": {
            "type": "number",
            "description": "Total contributions produced by the tool."
        },
        "growth": {
            "type": "number",
            "description": "Estimated growth produced by the tool."
        }
    },
    "additionalProperties": false
}

Finance 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/finance-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "calculation": "future_value",
    "present_value": 25000,
    "payment": 500,
    "annual_rate": 6,
    "years": 10,
    "periods_per_year": 12
}'
{
    "ok": true,
    "data": {
        "slug": "finance-calculator",
        "result": {
            "values": {
                "result": 127424.58999999999650754034519195556640625,
                "total_contributions": 85000,
                "growth": 42424.58999999999650754034519195556640625
            },
            "display": {
                "display": "127424.59"
            },
            "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.