How long before your due date do you stop working?


I know some people work right up until they deliver, but at my job I won’t be able to do that. I take care of adults with intellectual disabilities and I can’t leave them alone to go to the hospital, and i’d probably never find anyone to come in to let me leave. Ive literally been stuck at work for days with vomiting migraines because no one will come in so I can leave. So I’m worried about going into labor at work and just being stuck there, but I know that due dates are almost never right and could go either way, so I’m not really sure what to do. I’m not quit 22 weeks, so I’ve got plenty of time, it’s just starting to stress me out.