How do you know when to book profit on an investment?

While booking profit, one should ideally encash only a small portion of investment, as it can deliver twin benefits. Source
While booking profit, one should ideally encash only a small portion of investment, as it can deliver twin benefits. Source