to use or change a bad situation so that it helps you
turn sth to your advantage
Definiciones del Oxford Advanced Learner's Dictionary, 9.ª edición