The life of a battery depends on whether it can be charged and how long can it hold the charge, so once you notice that the battery doesn't hold the charge, it means that it's time to change it. The conditions definitely are important and if your battery is kept under no excessive humidity and high temperatures, it will last up to 6 years.