factors to consider when investing in a company