When are you going on maternity leave?

So I am due November 2nd with our first child. My husband and I have been talking about when I am going to go on maternity leave. I currently work full time while taking 15 credit hours at a university. I have already contacted my professors for the fall semester and informed them about what is going on. They’re all very understanding, and have agreed to let me finish my homework early so that it doesn’t interfere when baby girl is born. But, I’m thinking about making my last day of work October 22nd, so that I can make sure I have all my work done before I go into labor. I don’t want to be stressed out. Is this a good time to leave?