Solar battery calculation