Around what week do drs usually schedule a csection?

Jennifer
I've had 2 previous c sections but neither of them were planned so I'm just wondering around when will they schedule...and do they schedule it right before they do it or weeks in advance?