{
  "schemaVersion": 1,
  "slug": "influencer-earnings-calculator",
  "category": "social-media",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "b38b1f021020adbe4d8c4b78e8aafc36b770139ed35b5b00cc9b61e68bf6dbaa",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/influencer-earnings-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "monthly = agreed rate per post × posts per month; annual = monthly × 12",
    "vars": [
      [
        "F",
        "followers"
      ],
      [
        "p",
        "platform base rate ($/1k)"
      ],
      [
        "n",
        "niche multiplier"
      ],
      [
        "ER",
        "engagement rate (%)"
      ],
      [
        "s",
        "stories add-on (%)"
      ]
    ],
    "note": "Monthly gross scenario = agreed rate per post × sponsored posts per month; annual = monthly × 12."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const monthlyIncome=ratePerPost*postsPerMonth; return {monthlyIncome,annualIncome:monthlyIncome*12};",
    "inputs": [
      {
        "name": "ratePerPost",
        "type": "number",
        "default": 100,
        "min": 0,
        "max": 10000000,
        "step": 1
      },
      {
        "name": "postsPerMonth",
        "type": "number",
        "default": 4,
        "min": 0,
        "max": 200,
        "step": 1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "monthlyIncome",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "annualIncome",
        "precision": 2,
        "unit": "$"
      }
    ],
    "interpret": null
  }
}
