This is a verbal algorithm, but don't let that mystify you. An algorithm is any special method of solving a certain kind of problem. The investment time horizon, or intended holding period, is expected to be long term for most value investing situations. If the horizon is less than five years, then use a General DCF model. Dividends are expected to be postive.
Dividends are negative when they exceed earnings in the period.
If negative future cash dividends are expected, then use a General DCF model. If no such growth pattern is expected, then use a General DCF model. The opportunity cost discount rate is expected to be invariant for the investment time horizon. If no such constant discount rate is expected, then use a General DCF model. Otherwise, you may choose an appropriate model with a suitable future growth pattern by answering the following questions.