A few weeks if you don't mind being fat
lol, but seriously bro - that sucks about your shoulder. How long are you out for? When can you start working out the rest of your body?
It's honestly gonna be tough to gain 27lbs just working legs. I don't think anyone could give you a "time line" for something like that.