When to take opposition (not the direct one) in king pawn endgame


The aim of the opposition is to get you to reach one of the key squares in front of your pawn. That's the long and short. Your question is too broad/vague. Show some positions you're struggling with, maybe?
Or are you talking about endgames with multiple pawns? Those mostly come down to brute calculation.