The cost of storing energy in batteries is truly enormous when talking about large amounts (for example two weeks of U.S. total energy usage); this would probably costs trillions of dollars. But instead if you stored this in caverns or convert it to ammonia or another fuel... the storage cost will be a small fraction of this.