i left work at 35 weeks, My DS EDD was 16/09/09 but he arrived 05/09/09 so a few days early. IMO anywhere between 35-37 would be relitivly safe unless of course she is premature. its totally up to how your feeling within yourself and the pregnancy.
Good luck anyway
btw. im no professional on maternity leave so thats just my story and opinion.