How to use equity analysis to evaluate investment opportunities