How can you even estimate the cost of batteries? Insane amounts of batteries would be needed, capable of storing all of Germany's energy needs (including transportation and residential heating) for 10 days or so. That would be at least 10 TWh, as Germany currently uses about 550 TWh per year.
The global production of lithium ion batteries in 2018 was 290 GWh (1000 GWh = 1 TWh), expected to increase to 2 TWh per year by 2028 (https://www.statista.com/statistics/1247625/global-productio...).
In other words, even if Germany would buy every single battery produced on Earth over the course of 5 years, it probably wouldn't be sufficient to provide energy for 10 winter days without wind.