← All tool references

Finance · not_available

Present Value Calculator

Discount a future amount and recurring future payments into today’s value.

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/present-value-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/present-value-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.

future_value · number · required
Enter the future lump sum used by this tool.
periodic_payment · number · required
Enter the monthly future payment used by this tool.
annual_rate · number · required
Enter the annual discount rate used by this tool.
years · number · required
Enter the term used by this tool.
compound_frequency · string · required
Enter the compounding frequency used by this tool. Accepted values: monthly, quarterly, annually.
{
    "type": "object",
    "properties": {
        "future_value": {
            "type": "number",
            "description": "Enter the future lump sum used by this tool.",
            "minimum": 0
        },
        "periodic_payment": {
            "type": "number",
            "description": "Enter the monthly future payment used by this tool.",
            "minimum": 0
        },
        "annual_rate": {
            "type": "number",
            "description": "Enter the annual discount rate used by this tool."
        },
        "years": {
            "type": "number",
            "description": "Enter the term used by this tool.",
            "minimum": 0.01000000000000000020816681711721685132943093776702880859375,
            "maximum": 100
        },
        "compound_frequency": {
            "type": "string",
            "description": "Enter the compounding frequency used by this tool.",
            "enum": [
                "monthly",
                "quarterly",
                "annually"
            ]
        }
    },
    "required": [
        "future_value",
        "periodic_payment",
        "annual_rate",
        "years",
        "compound_frequency"
    ],
    "additionalProperties": false
}

Output schema

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

present_value · number
Present value produced by the tool.
lump_sum_present_value · number
Lump-sum present value produced by the tool.
payments_present_value · number
Payments present value produced by the tool.
discount_amount · number
Discount from nominal cash produced by the tool.
{
    "type": "object",
    "properties": {
        "present_value": {
            "type": "number",
            "description": "Present value produced by the tool."
        },
        "lump_sum_present_value": {
            "type": "number",
            "description": "Lump-sum present value produced by the tool."
        },
        "payments_present_value": {
            "type": "number",
            "description": "Payments present value produced by the tool."
        },
        "discount_amount": {
            "type": "number",
            "description": "Discount from nominal cash produced by the tool."
        }
    },
    "additionalProperties": false
}

Present Value 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/present-value-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "future_value": 100000,
    "periodic_payment": 0,
    "annual_rate": 5,
    "years": 10,
    "compound_frequency": "monthly"
}'
{
    "ok": true,
    "data": {
        "slug": "present-value-calculator",
        "result": {
            "values": {
                "present_value": 60716.0999999999985448084771633148193359375,
                "lump_sum_present_value": 60716.0999999999985448084771633148193359375,
                "payments_present_value": 0,
                "discount_amount": 39283.9000000000014551915228366851806640625
            },
            "display": {
                "display": "60716.1"
            },
            "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.