Battery life of photovoltaic modules