I knew I was going to quit with my second, and wanted to enjoy some time before #2 was born (was due late Oct). So I gave notice some time in May, I think, and just said I'd ideally like to be done around the end of July, but could be flexible to be sure they had my replacement on board.