Map battery level to %

see