{
  "tool_id": "electricity_plan_switch",
  "slug": "electricity-plan-switch-calculator",
  "path": "/electricity-plan-switch-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/electricity-plan-switch-calculator/?<params>",
  "sample_input": {
    "tool": "electricity_plan_switch",
    "monthly_kwh": [
      760,
      710,
      680,
      620
    ],
    "contract_months": 12,
    "current_plan": {
      "pricing_model": "flat",
      "flat_rate_per_kwh": 0.201,
      "peak_rate_per_kwh": 0,
      "offpeak_rate_per_kwh": 0,
      "peak_share": 0.4,
      "offpeak_share": 0.6,
      "monthly_fixed_fee": 14,
      "other_monthly_charges": 6,
      "other_per_kwh_charges": 0.015,
      "signup_credit": 0,
      "cancellation_fee": 0
    },
    "candidate_plan": {
      "pricing_model": "tou",
      "flat_rate_per_kwh": 0,
      "peak_rate_per_kwh": 0.245,
      "offpeak_rate_per_kwh": 0.129,
      "peak_share": 0.45,
      "offpeak_share": 0.55,
      "monthly_fixed_fee": 12,
      "other_monthly_charges": 4,
      "other_per_kwh_charges": 0.012,
      "signup_credit": 120,
      "cancellation_fee": 95
    }
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "monthly_kwh": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      },
      "contract_months": {
        "type": "integer"
      },
      "current_plan": {
        "type": "object",
        "properties": {
          "pricing_model": {
            "type": "string"
          },
          "flat_rate_per_kwh": {
            "type": "number"
          },
          "peak_rate_per_kwh": {
            "type": "integer"
          },
          "offpeak_rate_per_kwh": {
            "type": "integer"
          },
          "peak_share": {
            "type": "number"
          },
          "offpeak_share": {
            "type": "number"
          },
          "monthly_fixed_fee": {
            "type": "integer"
          },
          "other_monthly_charges": {
            "type": "integer"
          },
          "other_per_kwh_charges": {
            "type": "number"
          },
          "signup_credit": {
            "type": "integer"
          },
          "cancellation_fee": {
            "type": "integer"
          }
        },
        "required": [
          "pricing_model",
          "flat_rate_per_kwh",
          "peak_rate_per_kwh",
          "offpeak_rate_per_kwh",
          "peak_share",
          "offpeak_share",
          "monthly_fixed_fee",
          "other_monthly_charges",
          "other_per_kwh_charges",
          "signup_credit",
          "cancellation_fee"
        ]
      },
      "candidate_plan": {
        "type": "object",
        "properties": {
          "pricing_model": {
            "type": "string"
          },
          "flat_rate_per_kwh": {
            "type": "integer"
          },
          "peak_rate_per_kwh": {
            "type": "number"
          },
          "offpeak_rate_per_kwh": {
            "type": "number"
          },
          "peak_share": {
            "type": "number"
          },
          "offpeak_share": {
            "type": "number"
          },
          "monthly_fixed_fee": {
            "type": "integer"
          },
          "other_monthly_charges": {
            "type": "integer"
          },
          "other_per_kwh_charges": {
            "type": "number"
          },
          "signup_credit": {
            "type": "integer"
          },
          "cancellation_fee": {
            "type": "integer"
          }
        },
        "required": [
          "pricing_model",
          "flat_rate_per_kwh",
          "peak_rate_per_kwh",
          "offpeak_rate_per_kwh",
          "peak_share",
          "offpeak_share",
          "monthly_fixed_fee",
          "other_monthly_charges",
          "other_per_kwh_charges",
          "signup_credit",
          "cancellation_fee"
        ]
      }
    },
    "required": [
      "tool",
      "monthly_kwh",
      "contract_months",
      "current_plan",
      "candidate_plan"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "currentAnnualCost": {
        "type": "number"
      },
      "candidateAnnualCost": {
        "type": "number"
      },
      "annualSavings": {
        "type": "number"
      },
      "averageMonthlySavings": {
        "type": "number"
      },
      "breakEvenKwh": {
        "type": "null"
      },
      "sensitivityTable": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "usageMultiplier": {
              "type": "number"
            },
            "annualUsageKwh": {
              "type": "number"
            },
            "currentAnnualCost": {
              "type": "number"
            },
            "candidateAnnualCost": {
              "type": "number"
            },
            "annualSavings": {
              "type": "number"
            }
          }
        }
      },
      "riskFlags": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "contractMonths": {
            "type": "number"
          },
          "averageMonthlyKwh": {
            "type": "number"
          },
          "annualUsageKwh": {
            "type": "number"
          },
          "currentEffectiveRatePerKwh": {
            "type": "number"
          },
          "candidateEffectiveRatePerKwh": {
            "type": "number"
          }
        }
      }
    }
  }
}
