A detailed case study could be worth doing.
Typically, first priority is an emergency fund to cover say 3 months' minimum expenses. Second priority to pay down any debt, unless it is a low-rate long-term mortgage or student loan. Reason being interest rate on credit card/car loan debit is normally higher than average investment returns, and the debt interest saving is a guaranteed return. Only then is it normally worth thinking about investing.