When did you get a sweep?

Just wondered when you get offered a sweep? Is it only after 40 weeks or could I be offered sooner??