In general, I like to leave fish out of the tank for about a week to make sure they are ok and don't have anything that can be passed on. If you are certain it was a swim bladder issue, I think you can put him back as soon as he seems normal since swim bladder issues are typically from constipation.