Scheduled c section

Those of you who had to have a scheduled c section, how many days early did they schedule it for?