Recovery Timeline

I just scheduled my surgery for August 1st. Doc said I’ll be walking that day and it’ll take a few weeks before I can lift weights, etc. I go to pure barre regularly, how long should I plan to be out?