{
  "tool_id": "customer_lifetime_value",
  "slug": "customer-lifetime-value-calculator",
  "path": "/customer-lifetime-value-calculator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aibizhub.io/customer-lifetime-value-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aibizhub.io/engines/customer-lifetime-value-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aibizhub.io/methodology/customer-lifetime-value-calculator/",
  "sample_input": {
    "tool": "customer_lifetime_value",
    "avg_purchase_value": 50,
    "purchase_frequency_per_year": 4,
    "customer_lifespan_years": 3,
    "acquisition_cost": 100,
    "gross_margin_pct": 60
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "avg_purchase_value": {
        "type": "number"
      },
      "purchase_frequency_per_year": {
        "type": "number"
      },
      "customer_lifespan_years": {
        "type": "number"
      },
      "acquisition_cost": {
        "type": "number"
      },
      "gross_margin_pct": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "avg_purchase_value",
      "purchase_frequency_per_year",
      "customer_lifespan_years",
      "acquisition_cost",
      "gross_margin_pct"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "clv": {
        "type": "number"
      },
      "annualValue": {
        "type": "number"
      },
      "monthlyValue": {
        "type": "number"
      },
      "marginAdjustedClv": {
        "type": "number"
      },
      "ltcRatio": {
        "type": "number"
      },
      "paybackMonths": {
        "type": "number"
      }
    }
  }
}
