← All tool references

Finance · execute

Loan Calculator

Estimate a fixed-rate monthly loan payment, total interest, payoff date, and amortization schedule.

Open public tool

Overview

Category
Finance
API mode
execute
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/loan-calculator

View this descriptor as JSON

Execute availability

This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.

POST /api/v1/tools/loan-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 amount borrowed or invested before interest, fees, taxes, and future payments.
annual_rate · number · required
Enter 6.5 for 6.5%.
term_months · number · required
Enter the total number of monthly payments in the repayment term.
{
    "type": "object",
    "properties": {
        "principal": {
            "type": "number",
            "description": "Enter the amount borrowed or invested before interest, fees, taxes, and future payments."
        },
        "annual_rate": {
            "type": "number",
            "description": "Enter 6.5 for 6.5%."
        },
        "term_months": {
            "type": "number",
            "description": "Enter the total number of monthly payments in the repayment term."
        }
    },
    "required": [
        "principal",
        "annual_rate",
        "term_months"
    ],
    "additionalProperties": false
}

Output schema

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

monthly_payment · number
Browser-calculated monthly payment.
total_paid · number
Browser-calculated total paid.
total_interest · number
Interest over the term.
schedule · array
Browser-calculated schedule.
{
    "type": "object",
    "properties": {
        "monthly_payment": {
            "type": "number",
            "description": "Browser-calculated monthly payment."
        },
        "total_paid": {
            "type": "number",
            "description": "Browser-calculated total paid."
        },
        "total_interest": {
            "type": "number",
            "description": "Interest over the term."
        },
        "schedule": {
            "type": "array",
            "items": [],
            "description": "Browser-calculated schedule."
        }
    },
    "additionalProperties": false
}

Loan Calculator: Standard amortization

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/loan-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "principal": 250000,
    "annual_rate": 6.5,
    "term_months": 360
}'
{
    "ok": true,
    "data": {
        "slug": "loan-calculator",
        "result": {
            "values": {
                "monthly_payment": 1580.170000000000072759576141834259033203125,
                "total_paid": 568861.21999999997206032276153564453125,
                "total_interest": 318861.21999999997206032276153564453125
            },
            "display": {
                "display": "1580.17"
            },
            "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.