It's difficult to answer your question without knowing what kind of treatment you might choose or require (surgery, radiation, other) and the outcome of that treatment.
Outcomes vary. Most guys regain urinary continence in a relatively short period of time, although they are able to return to most jobs even before fully regaining continence. So, if you have surgery, you may be dealing with the pad issue for a while after returning to work, and you would probably want to change pads in the privacy of a stall.
Personally, I now require fewer visits to the restroom than I did prior to surgery (I had a very large prostate that even without the cancer was causing urinary frequency), and the urinary urgency is gone. Surgery for me was a year ago, and continence returned in about two months. Some guys have continence issues that continue to be a problem.
Office jobs present fewer challenges than physically hard work, but we have guys here on the site who have returned to very strenuous jobs, and I imagine they will be sharing their experiences with you.
Hopefully, with your Gleason 6 biopsy results, you'll recover well and will have few problems returning to whatever line of work you choose. And, if all goes well, you shouldn't be needing much, if any, additional time off for future medical treatments after surgery and recovery other than a quick visit for a PSA blood draw every 3 months. Again, much depends on the kind of treatment you choose and the outcome of that treatment. For example, if the final pathology shows more extensive involvement, then you might require a significant amount of time off for radiation treatments.
The primary consideration, though, is to deal with the cancer, whatever that might require. Your physician knows your situation and can probably give you some likely outcomes and some answers to the questions that you're asking.