Battery icon - how to calc percentage?