Solar panel energy storage calculation