power

Compares total cost of ownership between a fuel generator and a solar+battery system over a configurable time horizon. Calculates yearly and cumulative costs for generator-only, solar-only (amortized), and hybrid scenarios. Accounts for fuel cost, generator consumption rate, maintenance intervals, solar system amortization, and battery coverage. Outputs yearly costs, total savings, breakeven year, solar coverage percentage, and generator hours saved. Essential for off-grid site planning, remote telecom towers, construction sites, and rural electrification proposals.

post/api/generator_offset

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/generator_offset
  • Auth: none declared

Request body

generator_fuel_cost_per_gallonnumber

Fuel cost per gallon in USD, default $3.50

generator_consumption_gphnumber

Generator fuel consumption in gallons per hour at load, default 1.0

generator_hours_per_daynumber

Generator runtime hours per day, default 8

generator_maintenance_per_1000hrsnumber

Generator maintenance cost per 1000 running hours in USD, default $200

solar_system_cost_usdnumber required

Total solar+battery system cost in USD

solar_daily_kwh_producednumber required

Daily solar energy production in kWh

battery_kwhnumber

Battery storage capacity in kWh (0 means no battery, generator needed at night), default 0

daily_kwh_needednumber required

Total daily energy requirement in kWh

years_to_comparenumber

Number of years to compare, default 10

Response

Computed result for generator_offset

toolstring required
versionstring required
computed_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.