There's also the issue of quantity. You'll be awarded more CUB per unit of time when you keep your funds in a Farm. If the rate at which CUB goes up is small enough, then farming may be the optimal choice. I haven't worked out where the limit is. That's quite complicated because the APR of a particular pool is dynamic as it depends on the total amount of funds in it at each given moment.
RE: Why/When You Want to Go Into a Den vs. Farm