I'd suggest adding light or medium roast whole beans for 12-24 hours in your fermenter, assuming fermentation has already stopped and you are getting ready to keg or bottle. Unless you like vegetal off-flavors in your beer, I wouldn't keep it longer that. Use fresh, good quality beans for this...