An algorithm programmed into the control circuitry of a rechargeable-battery Implantable Medical Device (IMD) is disclosed that can adjust the charging current (Ibat) provided to the rechargeable battery over time (e.g., the life of the IMD) in accordance with one or more of the parameters having an effect on rechargeable battery capacity, such as number of charging cycles, charging current, discharge depth, load current, and battery calendar age. The algorithm consults such parameters as stored over the history of the operation of the IMD in a parameter log, and in conjunction with a battery capacity database reflective of the effect of these parameters on battery capacity, estimates a change in the capacity of the battery, and adjust the charging current in one or both of trickle and active charging paths to slow the loss of battery capacity and extend the life of the IMD.L'invention concerne un algorithme programmé dans la circuiterie de commande d'un dispositif médical implantable (IMD) à batterie rechargeable, qui peut régler le courant de charge (Ibat) fourni à la batterie rechargeable au fil du temps (par exemple, la durée de vie de l'IMD) selon un ou plusieurs des paramètres ayant un effet sur la capacité de batterie rechargeable, tels que le nombre de cycles de charge, le courant de charge, la profondeur de décharge, le courant de charge et l'âge réel de la batterie. L'algorithme consulte de tels paramètres tels que stockés au cours de l'historique de fonctionnement de l'IMD dans un journal de paramètres et, conjointement avec une base de données de capacité de batterie reflétant l'effet de ces paramètres sur la capacité de batterie, estime un changement de capacité de la batterie et règle le courant de charge dans l'un ou les deux trajets de charge active et d'entretien pour ralentir la perte de capacité de batterie et prolonger la durée de vie de l'IMD.