I worked till 28 weeks with Maya as I had severe SPD and my job involved a lot of sitting and they weren't flexible with working around me not being able to sit for hours on end.
Worked to 34 weeks with the gremlins which horrified my OB but there was no one to take over my job till then. To be honest by the end my brain wasn't really with it and I was just muddling thru which is tough for me coz I love my job and I hate not being able to give 100%.
Am finishing at 36 weeks this time round (five weeks to go tomorrow!) and while I still love my job and would be happy to work till closer to my EDD, I'm looking forward to having a few weeks to spend hanging out with the gremlins before baby arrives. Assuming my midwife is wrong and baby doesn't come early that is