← All tool references

Finance · not_available

Investment Fee Calculator

Compare investment growth before and after recurring fees.

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/investment-fee-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/investment-fee-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.

initial_investment · number · required
Enter initial investment for this calculation.
monthly_contribution · number · required
Enter monthly contribution for this calculation.
gross_return · number · required
Enter gross annual return for this calculation.
annual_fee · number · required
Enter annual fee for this calculation.
years · number · required
Enter years for this calculation.
{
    "type": "object",
    "properties": {
        "initial_investment": {
            "type": "number",
            "description": "Enter initial investment for this calculation.",
            "minimum": 0
        },
        "monthly_contribution": {
            "type": "number",
            "description": "Enter monthly contribution for this calculation.",
            "minimum": 0
        },
        "gross_return": {
            "type": "number",
            "description": "Enter gross annual return for this calculation."
        },
        "annual_fee": {
            "type": "number",
            "description": "Enter annual fee for this calculation."
        },
        "years": {
            "type": "number",
            "description": "Enter years for this calculation.",
            "minimum": 1
        }
    },
    "required": [
        "initial_investment",
        "monthly_contribution",
        "gross_return",
        "annual_fee",
        "years"
    ],
    "additionalProperties": false
}

Output schema

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

without_fees · number
Value without fees calculated by the tool.
with_fees · number
Value after fees calculated by the tool.
fee_drag · number
Estimated fee drag calculated by the tool.
fee_drag_percent · number
Fee drag calculated by the tool.
timeline · array
Annual comparison calculated by the tool.
{
    "type": "object",
    "properties": {
        "without_fees": {
            "type": "number",
            "description": "Value without fees calculated by the tool."
        },
        "with_fees": {
            "type": "number",
            "description": "Value after fees calculated by the tool."
        },
        "fee_drag": {
            "type": "number",
            "description": "Estimated fee drag calculated by the tool."
        },
        "fee_drag_percent": {
            "type": "number",
            "description": "Fee drag calculated by the tool."
        },
        "timeline": {
            "type": "array",
            "description": "Annual comparison calculated by the tool."
        }
    },
    "additionalProperties": false
}

Investment Fee 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/investment-fee-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "initial_investment": 25000,
    "monthly_contribution": 300,
    "gross_return": 7,
    "annual_fee": 1,
    "years": 20
}'
{
    "ok": true,
    "data": {
        "slug": "investment-fee-calculator",
        "result": {
            "values": {
                "without_fees": 257246.47000000000116415321826934814453125,
                "with_fees": 221367.380000000004656612873077392578125,
                "fee_drag": 35879.08999999999650754034519195556640625,
                "fee_drag_percent": 13.9473590000000005062474883743561804294586181640625,
                "timeline": [
                    {
                        "year": 1,
                        "without_fees": 30525.02999999999883584678173065185546875,
                        "with_fees": 30242.610000000000582076609134674072265625
                    },
                    {
                        "year": 2,
                        "without_fees": 36449.4599999999991268850862979888916015625,
                        "with_fees": 35808.580000000001746229827404022216796875
                    },
                    {
                        "year": 3,
                        "without_fees": 42802.169999999998253770172595977783203125,
                        "with_fees": 41717.83999999999650754034519195556640625
                    },
                    {
                        "year": 4,
                        "without_fees": 49614.1200000000026193447411060333251953125,
                        "with_fees": 47991.580000000001746229827404022216796875
                    },
                    {
                        "year": 5,
                        "without_fees": 56918.5,
                        "with_fees": 54652.2600000000020372681319713592529296875
                    },
                    {
                        "year": 6,
                        "without_fees": 64750.919999999998253770172595977783203125,
                        "with_fees": 61723.7600000000020372681319713592529296875
                    },
                    {
                        "year": 7,
                        "without_fees": 73149.550000000002910383045673370361328125,
                        "with_fees": 69231.419999999998253770172595977783203125
                    },
                    {
                        "year": 8,
                        "without_fees": 82155.3099999999976716935634613037109375,
                        "with_fees": 77202.130000000004656612873077392578125
                    }
                ]
            },
            "display": {
                "display": "257246.47"
            },
            "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.