It doesn't need to be more complicated than taking a lower end average for the range calculated and then removing a few extra miles for some safety margin.
Gasoline vechicals do this all the time with their range calculations. They typically exclude the last gallon from the range calculation so that the car won't stop immediately at 0 range.