This paper describes the possibilities of using the sun and solar radiation to obtain electricity and what types of technology are used for this. Ways of battery storage of electricity with emphasis on lithium-ion systems are described, and then the possibilities of the SAM software package for modeling solar power plants and battery warehouses are described. Then, a model of a solar power plant and a battery warehouse was made in it, and data on electricity production, financial profitability and cash flow for such a project were presented.