We check if the battery is below minimum and, if so, assume that the charge is 0%. This to prevent an underflow which would result in the function returing a 100% charge level.