← All tool references

Finance · not_available

Compound Interest Calculator

Project how a starting balance and recurring deposits can grow through compounding.

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/compound-interest-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/compound-interest-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.

principal · number · required
Enter the starting principal used by this tool.
monthly_contribution · number · required
Enter the monthly contribution used by this tool.
annual_rate · number · required
Enter the annual interest rate used by this tool.
years · number · required
Enter the investment term used by this tool.
compound_frequency · string · required
Enter the compounding frequency used by this tool. Accepted values: daily, monthly, quarterly, annually.
{
    "type": "object",
    "properties": {
        "principal": {
            "type": "number",
            "description": "Enter the starting principal used by this tool.",
            "minimum": 0
        },
        "monthly_contribution": {
            "type": "number",
            "description": "Enter the monthly contribution used by this tool.",
            "minimum": 0
        },
        "annual_rate": {
            "type": "number",
            "description": "Enter the annual interest rate used by this tool."
        },
        "years": {
            "type": "number",
            "description": "Enter the investment term used by this tool.",
            "minimum": 0.1000000000000000055511151231257827021181583404541015625,
            "maximum": 100
        },
        "compound_frequency": {
            "type": "string",
            "description": "Enter the compounding frequency used by this tool.",
            "enum": [
                "daily",
                "monthly",
                "quarterly",
                "annually"
            ]
        }
    },
    "required": [
        "principal",
        "monthly_contribution",
        "annual_rate",
        "years",
        "compound_frequency"
    ],
    "additionalProperties": false
}

Output schema

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

future_value · number
Future value produced by the tool.
total_contributions · number
Total contributions produced by the tool.
interest_earned · number
Interest earned produced by the tool.
effective_annual_rate · number
Effective annual rate produced by the tool.
{
    "type": "object",
    "properties": {
        "future_value": {
            "type": "number",
            "description": "Future value produced by the tool."
        },
        "total_contributions": {
            "type": "number",
            "description": "Total contributions produced by the tool."
        },
        "interest_earned": {
            "type": "number",
            "description": "Interest earned produced by the tool."
        },
        "effective_annual_rate": {
            "type": "number",
            "description": "Effective annual rate produced by the tool."
        }
    },
    "additionalProperties": false
}

Compound Interest Calculator 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/compound-interest-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "principal": 10000,
    "monthly_contribution": 300,
    "annual_rate": 6,
    "years": 15,
    "compound_frequency": "monthly"
}'
{
    "ok": true,
    "data": {
        "slug": "compound-interest-calculator",
        "result": {
            "values": {
                "future_value": 111786.550000000002910383045673370361328125,
                "total_contributions": 64000,
                "interest_earned": 47786.550000000002910383045673370361328125,
                "effective_annual_rate": 6.1677809999999997359054759726859629154205322265625
            },
            "display": {
                "display": "111786.55"
            },
            "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.