How to plan ahead better?


Do you mean planning? Or calculation? There's a big difference.
This might help with general planning:
https://www.chess.com/forum/view/general/gm-larry-evans-method-of-static-analysis

And this might help with calculation
https://www.chess.com/forum/view/game-analysis/calculation-training