Plan Cost Calculator
Low-level Texas electricity bill calculator. Computes the exact monthly and annual bill given a fully-specified plan rate sheet (energy rate, solar buyback, base fee, TDU delivery rate, TDU monthly fee) and a home's usage profile. For ZIP-based lookups that fetch plan rates and TDU charges automatically, use `quote-meter-plan`.
Endpoint
POST https://meterplan.com/api/v1/plan-cost-calc
MCP tool name: calculate_plan_cost
Inputs
importKwhnumberrequiredMonthly electricity imported from the grid, in kWh.
exportKwhnumberrequiredMonthly solar electricity exported to the grid, in kWh. Use 0 for non-solar homes.
importRatenumberrequiredPlan's energy import rate in cents per kWh (e.g., 12.5 for 12.5¢/kWh).
exportRatenumberrequiredPlan's solar buyback credit in cents per kWh (e.g., 8 for 8¢/kWh). Use 0 for plans without solar buyback.
baseFeenumberrequiredPlan's monthly base fee in dollars (e.g., 14.95). Use 0 for no-base-fee plans.
deliveryRatenumberrequiredRequired. Texas TDU per-kWh delivery charge in cents (e.g., 4.2 for ONCOR ~4.2¢/kWh). TDU charges are billed separately from energy in Texas retail electricity — omitting them produces a bill ~$30/mo too low. Look up the rate for your utility from the EFL or use the `quote-meter-plan` tool which fetches it automatically by ZIP.
deliveryBaseFeenumberrequiredRequired. Texas TDU monthly base fee in dollars (e.g., 3.42 for ONCOR). Like delivery rate, this is mandatory for Texas residential electricity and not bundled into the energy rate.
batteryCapacityKwhnumberBattery capacity in kWh (e.g., 13.5 for a Tesla Powerwall 3). Required if storageCreditPerKwh is set.
storageCreditPerKwhnumberPlan's battery VPP credit rate in $/kWh/month (e.g., 2 for $2/kWh/mo).
monthlyCreditDollarsnumberOptional override: direct monthly battery credit in dollars, replacing the capacity × credit-rate calculation.
Outputs
importChargesnumberGross monthly cost of imported energy, in dollars.
exportCreditsnumberGross monthly solar export credit, in dollars.
netEnergyChargesnumberNet energy charges after applying export credits (clamped at 0).
carryforwardCreditsnumberSolar credits that exceed import charges and carry forward.
deliveryChargesnumberMonthly TDU delivery charges, in dollars.
billBeforeCreditsnumberBill total before battery credits are applied.
batteryCreditnumberMonthly battery VPP credit, in dollars.
excessBatteryCreditsnumberBattery credits that exceed the bill (banked).
totalMonthlyBillnumberFinal monthly bill after all credits, in dollars.
totalAnnualBillnumberFinal annual bill (monthly × 12), in dollars.
Example prompts
- “Calculate the bill for ONCOR territory with import 700 kWh @ 13¢, export 500 kWh @ 8¢, $14.95 base, TDU 4.2¢/kWh + $3.42 base.”
- “What's the annual cost for CenterPoint Houston with 900 kWh @ 11¢ import, 0 export, no base, TDU 5.3¢/kWh + $4.39 base?”
- “Battery plan bill: 1200 kWh @ 13¢, 800 kWh export @ 3¢, $0 base, ONCOR delivery 4.2¢ + $3.42, 13.5 kWh Powerwall @ $2/kWh/mo storage credit.”