Charging Time Calculator
calculate_charging_timeCalculate charging time for a battery bank from any state of charge to target, accounting for bulk and absorption phases. Supports solar, shore power, or alternator inputs.
Instructions
Estimate how long it takes to charge a battery bank from a given state of charge to a target level. Accounts for the bulk charging phase (constant current, up to ~80% SoC) and the slower absorption phase (tapering current, 80-100% SoC). Works for any charging source: solar, shore power, alternator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batteryCapacityAh | Yes | Total battery bank capacity in amp-hours | |
| batteryVoltage | Yes | Battery bank voltage (e.g. 12, 24, 48) | |
| currentStateOfChargePercent | Yes | Current state of charge in percent (e.g. 20 for 20%) | |
| targetStateOfChargePercent | No | Target state of charge in percent (default: 100) | |
| chargePowerWatts | Yes | Charger output power in watts | |
| chargeCurrentAmps | No | Maximum charge current in amps (if limited by the charger or battery BMS). If omitted, calculated from power and voltage. |