Low and Critical Battery Voltages
Different wireless device types define low and critical battery state voltage levels independently.
6.0+ volts is considered to be the maximum value, or 100%.
To calculate battery percentage:
percentage = (batteryVoltageOrMaxPossible – criticalVoltage) / (maxBatteryVoltage – criticalVoltage) * 100