Return to work will depend on your job and the procedure that was done. Generally:
If you have a desk job, you could return to work within one week. Try to keep your foot elevated initially to prevent swelling. Get up for a short walk at least every hour for the first few weeks.
If you stand most of the day but do not lift heavy objects, you'll probably be ready to return to work within four to six weeks.
If your job requires climbing or lifting heavier objects, recovery time will depend on the procedure. You may need to wait two to four months before returning to work and initially avoid lifting objects that weigh more than 10 lbs.