you should plan to take three months off from swimming/fighting/anything that involves quick arm or shoulder movements. regardless of what others tell you how long it took for them to recover (there's people out there who started weightlifting again 5 weeks post surgery), after three months you should be fine, before that it's a gamble, pretty much depends on your healing, the type of surgery etc.