10 days is about the average duration of dry hopping for me. I would not recommend going for over 14, either. So to answer your question, add the dry hops 7-14 days before you are going to bottle/keg.
EDIT: Whether or not you use a muslin bag is just a matter of preference. I usually don't...