{
  "tool_id": "roi_payback_period",
  "slug": "roi-payback-calculator",
  "path": "/roi-payback-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aibizhub.io/api/roi-payback-calculator/?<params>",
  "sample_input": {
    "tool": "roi_payback_period",
    "initial_investment": 50000,
    "upfront_benefit": 0,
    "annual_net_benefit": 14000,
    "analysis_years": 5,
    "residual_value": 8000,
    "discount_rate_percent": 10
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "initial_investment": {
        "type": "integer"
      },
      "upfront_benefit": {
        "type": "integer"
      },
      "annual_net_benefit": {
        "type": "integer"
      },
      "analysis_years": {
        "type": "integer"
      },
      "residual_value": {
        "type": "integer"
      },
      "discount_rate_percent": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "initial_investment",
      "upfront_benefit",
      "annual_net_benefit",
      "analysis_years",
      "residual_value",
      "discount_rate_percent"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "simpleRoiPercent": {
        "type": "number"
      },
      "annualizedRoiPercent": {
        "type": "number"
      },
      "paybackYears": {
        "type": "number"
      },
      "discountedPaybackYears": {
        "type": "number"
      },
      "totalNetGain": {
        "type": "number"
      },
      "totalNominalInflow": {
        "type": "number"
      },
      "totalDiscountedInflow": {
        "type": "number"
      },
      "timeline": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "year": {
              "type": "number"
            },
            "cumulativeNominalInflow": {
              "type": "number"
            },
            "cumulativeDiscountedInflow": {
              "type": "number"
            }
          }
        }
      },
      "scenarioTable": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string"
            },
            "annualNetBenefit": {
              "type": "number"
            },
            "simpleRoiPercent": {
              "type": "number"
            },
            "paybackYears": {
              "type": "number"
            }
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {}
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "initialInvestment": {
            "type": "number"
          },
          "upfrontBenefit": {
            "type": "number"
          },
          "annualNetBenefit": {
            "type": "number"
          },
          "analysisYears": {
            "type": "number"
          },
          "residualValue": {
            "type": "number"
          },
          "discountRatePercent": {
            "type": "number"
          }
        }
      }
    }
  }
}
