I usually dryhop for 5-7 days, and you want to do it immediately before packaging- so I dryhop about a week before bottling or kegging. I've gone as short as 3 days with dryhopping, and that works well too, but usually it's more like 7 days due to my schedule.