Planned c section

Just wondering how many days before due date did people have planned c section?