Hopefully before we become extinct. If not then, then at the same time.
Religions come and go with whoever is the dominant empire. All indications point to China being the next one, so I'm not sure it will ever be extinct, but it will lose its dominance. The Chinese are mainly Buddhists and Taoists, both of which are more of a philosophy that a religion, and hence no God to worship. That'll be a big improvement!
We will all be dead by then, i think its probably never. so glad there is a life span so we aren't stuck in the middle of all this crap forever (or eternity or afterlife or whatever it is the bible thumpers believe) I have no religious friends, the closest I get to holy rollers is my cat groomer, and my part time employees crazy wife, the cat groomer is useful the latter is just nuts. I never see her except by accident.