Dundee United need to get to the final. If that doesn't happen then 5th place can kiss goodbye to European football. If Dundee United make it and Celtic don't then 5th need Dundee United to win the cup. If it is a Celtic v Dundee United final 5th is guaranteed Europe unless Dundee United fall to 6th which is extremely unlikely.