Fixed battery counter calculation