First, I am well aware of the discussion concerning primary vs secondary fermentation. Personally, I rack all my beers to a secondary. I have seen real improvement in the quality of my beer. However, it is important to point out that if you are going to use secondary fermentation then you need to be smart when you rack your beer. Namely, make sure the technique is clean and sterile.
To address your question, it depends on the type of beer and purpose (i.e. Are you adding hops? fruits?). Typically for 1.050 beers, the general rule is 1 week in the primary, 2 weeks in the secondary, and 3 weeks bottled. Again, this is just a general rule and will ultimately depend on your beer and the conditions it is left in. A good sign that your beer is ready to bottle is A.) Take a hydrometer reading, if you reached your FG then bottle the beer and B.) Wait until the beer is clear in the secondary.
Hope this helps! Happy Brewing!