Depends on your motivation and your requirements at your job.
If lifting is involved, most recommend 6 weeks. If not, it really is up to you as to when you return to work. In our experience, the minimum is 7 days or so. Might produce pain but will not damage the surgery outcome.