Dynamic Purchasing System Solar Energy And Energy Storage