Maximizing investment returns in the stock market