How to make the battery quantify current