Examples
Examples
Try the starting example
- Measured full-charge active runtime (min)
- 180
- Measured full recharge duration (min)
- 60
- Ride segments JSON [ID,start minute,end minute]
- [["R1",0,120],["R2",180,300],["R3",360,480]]
- Permitted recharge windows JSON [start,end] (minutes)
- [[120,180],[300,360]]
- Proposed full-recharge sessions [start,end]
- [[120,180],[300,360]]
- Uncovered active minutes by ride [ID,minutes]
- []
- Remaining active runtime after last ride (min)
- 60
- Covered active minutes total
- 360
Try another scenario
- Measured full-charge active runtime (min)
- 180
- Measured full recharge duration (min)
- 60
- Ride segments JSON [ID,start minute,end minute]
- [["R1",0,120],["R2",180,300],["R3",360,480]]
- Permitted recharge windows JSON [start,end] (minutes)
- [[120,150],[300,330]]
- Proposed full-recharge sessions [start,end]
- []
- Uncovered active minutes by ride [ID,minutes]
- [["R2",60],["R3",120]]
- Remaining active runtime after last ride (min)
- 0
- Covered active minutes total
- 180
Calculation method
Calculation method
Proposed full-recharge sessions [start,end]
Start initially full; before each ride use earliest whole available window since prior ride that fits measured full recharge if battery is not full.
Uncovered active minutes by ride [ID,minutes]
Ride duration minus available active runtime, clamped at zero.
Remaining active runtime after last ride (min)
Track runtime balance, subtracting up to available runtime per ride.
Covered active minutes total
Sum min(runtimeBeforeRide,rideDuration).
Symbols and units
- a
- Measured full-charge active runtime (min)
- b
- Measured full recharge duration (min)
- c
- Ride segments JSON [ID,start minute,end minute]
- d
- Permitted recharge windows JSON [start,end] (minutes)
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
- Measured-runtime bookkeeping, full recharges only. Ignores standby drain, charging while riding, partial charge curve, temperature and battery aging; user supplies acceptable windows. Supported limits: Positive integer runtime/recharge; ordered disjoint ride intervals; disjoint recharge windows outside rides; all minutes 0..10080.
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.