Solar cell discharge calculation formula