Examples
Examples
Try the starting example
- Samples [state of charge fraction, battery-side power kW]; enter JSON
- [[0.2,40],[0.5,40],[0.8,20]]
- Battery capacity (kWh)
- 60
- Integrated charging time (hours)
- 1.073832
- Battery energy added (kWh)
- 36
Try another scenario
- Samples [state of charge fraction, battery-side power kW]; enter JSON
- [[0.1,60],[0.4,30],[0.7,15]]
- Battery capacity (kWh)
- 80
- Integrated charging time (hours)
- 1.663553
- Battery energy added (kWh)
- 48
Calculation method
Calculation method
Integrated charging time (hours)
For each segment capacity×ΔSOC/P if endpoint powers equal, otherwise capacity×ΔSOC×ln(P2/P1)/(P2−P1); sum.
Battery energy added (kWh)
Capacity×(last SOC−first SOC).
Symbols and units
- a
- Samples [state of charge fraction, battery-side power kW]; enter JSON
- b
- Battery capacity (kWh)
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- Piecewise-linear positive measured power as a function of state of charge. Integrates only inside supplied sample range. Supported limits: All numeric inputs and computed intermediates must remain finite. Supported numeric input magnitude is zero or 1e-12 through 1e12 in absolute value; reject values outside this bounded range. All lists/JSON record tables are limited to 100 records unless a stricter bound is stated; reject malformed record arity and wrong member types. 2..100 samples; strictly increasing SOC within [0,1]; every measured power >0; capacity >0.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.