← All tool references

Finance · not_available

Repayment Calculator

Repayment 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/repayment-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/repayment-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 principal.
annual_rate · number · required
Enter annual rate.
term_years · number · required
Enter term.
extra_payment · number · required
Enter extra monthly payment.
{
    "type": "object",
    "properties": {
        "principal": {
            "type": "number",
            "description": "Enter principal."
        },
        "annual_rate": {
            "type": "number",
            "description": "Enter annual rate."
        },
        "term_years": {
            "type": "number",
            "description": "Enter term."
        },
        "extra_payment": {
            "type": "number",
            "description": "Enter extra monthly payment."
        }
    },
    "required": [
        "principal",
        "annual_rate",
        "term_years",
        "extra_payment"
    ],
    "additionalProperties": false
}

Output schema

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

monthly_payment · number
Required monthly payment produced by the tool.
months_to_payoff · number
Months to payoff produced by the tool.
total_interest · number
Total interest produced by the tool.
schedule · array
Payoff schedule produced by the tool.
{
    "type": "object",
    "properties": {
        "monthly_payment": {
            "type": "number",
            "description": "Required monthly payment produced by the tool."
        },
        "months_to_payoff": {
            "type": "number",
            "description": "Months to payoff produced by the tool."
        },
        "total_interest": {
            "type": "number",
            "description": "Total interest produced by the tool."
        },
        "schedule": {
            "type": "array",
            "description": "Payoff schedule produced by the tool."
        }
    },
    "additionalProperties": false
}

Repayment 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/repayment-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "principal": 18000,
    "annual_rate": 7.5,
    "term_years": 5,
    "extra_payment": 50
}'
{
    "ok": true,
    "data": {
        "slug": "repayment-calculator",
        "result": {
            "values": {
                "monthly_payment": 360.68000000000000682121026329696178436279296875,
                "months_to_payoff": 52,
                "total_interest": 3100.44000000000005456968210637569427490234375,
                "schedule": [
                    {
                        "year": 1,
                        "balance": 14296.20000000000072759576141834259033203125,
                        "interest_to_date": 1224.40000000000009094947017729282379150390625
                    },
                    {
                        "year": 2,
                        "balance": 10304.870000000000800355337560176849365234375,
                        "interest_to_date": 2161.26999999999998181010596454143524169921875
                    },
                    {
                        "year": 3,
                        "balance": 6003.6800000000002910383045673370361328125,
                        "interest_to_date": 2788.26999999999998181010596454143524169921875
                    },
                    {
                        "year": 4,
                        "balance": 1368.579999999999927240423858165740966796875,
                        "interest_to_date": 3081.3699999999998908606357872486114501953125
                    },
                    {
                        "year": 5,
                        "balance": 0,
                        "interest_to_date": 3100.44000000000005456968210637569427490234375
                    }
                ]
            },
            "display": {
                "display": "360.68"
            },
            "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.