Update battery percentage calculation so it calculates a percentage
between minimum voltage and maximum voltage instead of 0 and maximum
voltage.