← All tool references

Finance · not_available

Churn Rate Calculator

Measure customer churn, retention, and net customer change for a period.

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/churn-rate-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/churn-rate-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.

starting_customers · number · required
Enter the starting customers used by this tool.
lost_customers · number · required
Enter the customers lost used by this tool.
new_customers · number · required
Enter the new customers added used by this tool.
period_months · number · required
Enter the period length used by this tool.
{
    "type": "object",
    "properties": {
        "starting_customers": {
            "type": "number",
            "description": "Enter the starting customers used by this tool.",
            "minimum": 1
        },
        "lost_customers": {
            "type": "number",
            "description": "Enter the customers lost used by this tool.",
            "minimum": 0
        },
        "new_customers": {
            "type": "number",
            "description": "Enter the new customers added used by this tool.",
            "minimum": 0
        },
        "period_months": {
            "type": "number",
            "description": "Enter the period length used by this tool.",
            "minimum": 0.1000000000000000055511151231257827021181583404541015625,
            "maximum": 120
        }
    },
    "required": [
        "starting_customers",
        "lost_customers",
        "new_customers",
        "period_months"
    ],
    "additionalProperties": false
}

Output schema

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

churn_rate · number
Period churn rate produced by the tool.
retention_rate · number
Retention rate produced by the tool.
ending_customers · number
Ending customers produced by the tool.
net_customer_change · number
Net customer change produced by the tool.
annualized_churn · number
Annualized churn estimate produced by the tool.
{
    "type": "object",
    "properties": {
        "churn_rate": {
            "type": "number",
            "description": "Period churn rate produced by the tool."
        },
        "retention_rate": {
            "type": "number",
            "description": "Retention rate produced by the tool."
        },
        "ending_customers": {
            "type": "number",
            "description": "Ending customers produced by the tool."
        },
        "net_customer_change": {
            "type": "number",
            "description": "Net customer change produced by the tool."
        },
        "annualized_churn": {
            "type": "number",
            "description": "Annualized churn estimate produced by the tool."
        }
    },
    "additionalProperties": false
}

Churn Rate 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/churn-rate-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "starting_customers": 1200,
    "lost_customers": 72,
    "new_customers": 110,
    "period_months": 1
}'
{
    "ok": true,
    "data": {
        "slug": "churn-rate-calculator",
        "result": {
            "values": {
                "churn_rate": 6,
                "retention_rate": 94,
                "ending_customers": 1238,
                "net_customer_change": 38,
                "annualized_churn": 52.40796900000000135833033709786832332611083984375
            },
            "display": {
                "display": "6"
            },
            "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.