← All tool references

Finance · execute

Payment Calculator

Estimate the monthly principal-and-interest payment, total interest, total paid, and first-year schedule for a fixed-rate installment loan.

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/payment-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/payment-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.
monthly_escrow · number
Browser-calculated monthly escrow.
total_monthly · number
Browser-calculated total monthly.
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."
        },
        "monthly_escrow": {
            "type": "number",
            "description": "Browser-calculated monthly escrow."
        },
        "total_monthly": {
            "type": "number",
            "description": "Browser-calculated total monthly."
        },
        "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
}

Payment Calculator: Five-year installment loan

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/payment-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "principal": 25000,
    "annual_rate": 7.5,
    "term_months": 60
}'
{
    "ok": true,
    "data": {
        "slug": "payment-calculator",
        "result": {
            "values": {
                "monthly_payment": 500.94999999999998863131622783839702606201171875,
                "monthly_escrow": 0,
                "total_monthly": 500.94999999999998863131622783839702606201171875,
                "total_paid": 30056.919999999998253770172595977783203125,
                "total_interest": 5056.920000000000072759576141834259033203125,
                "schedule": []
            },
            "display": {
                "display": "500.95"
            },
            "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.