How to calculate the composite battery of photovoltaic