← All tool references

Finance · not_available

APR Calculator

Estimate the annual percentage rate of an installment loan after including upfront finance charges.

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/apr-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/apr-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.

loan_amount · number · required
Enter the loan amount used in the calculation.
upfront_fees · number · required
Enter the upfront finance charges used in the calculation.
interest_rate · number · required
Enter the stated annual rate used in the calculation.
term_months · number · required
Enter the loan term used in the calculation.
{
    "type": "object",
    "properties": {
        "loan_amount": {
            "type": "number",
            "description": "Enter the loan amount used in the calculation.",
            "minimum": 0
        },
        "upfront_fees": {
            "type": "number",
            "description": "Enter the upfront finance charges used in the calculation.",
            "minimum": 0
        },
        "interest_rate": {
            "type": "number",
            "description": "Enter the stated annual rate used in the calculation."
        },
        "term_months": {
            "type": "number",
            "description": "Enter the loan term used in the calculation.",
            "minimum": 1,
            "maximum": 600
        }
    },
    "required": [
        "loan_amount",
        "upfront_fees",
        "interest_rate",
        "term_months"
    ],
    "additionalProperties": false
}

Output schema

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

apr · number
Estimated APR produced by the calculation.
monthly_payment · number
Monthly payment produced by the calculation.
amount_financed · number
Net amount received produced by the calculation.
total_finance_cost · number
Total finance cost produced by the calculation.
{
    "type": "object",
    "properties": {
        "apr": {
            "type": "number",
            "description": "Estimated APR produced by the calculation."
        },
        "monthly_payment": {
            "type": "number",
            "description": "Monthly payment produced by the calculation."
        },
        "amount_financed": {
            "type": "number",
            "description": "Net amount received produced by the calculation."
        },
        "total_finance_cost": {
            "type": "number",
            "description": "Total finance cost produced by the calculation."
        }
    },
    "additionalProperties": false
}

APR 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/apr-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "loan_amount": 25000,
    "upfront_fees": 750,
    "interest_rate": 7,
    "term_months": 60
}'
{
    "ok": true,
    "data": {
        "slug": "apr-calculator",
        "result": {
            "values": {
                "apr": 8.2860999999999993548271959298290312290191650390625,
                "monthly_payment": 495.029999999999972715158946812152862548828125,
                "amount_financed": 24250,
                "total_finance_cost": 5451.8000000000001818989403545856475830078125
            },
            "display": {
                "display": "8.2861"
            },
            "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.