Projectile Prediction Line

So to start off I have been searching for an answer to this for 20+ hours in the past few days. So far everything that I have found seems to be outdated in some way.

I am trying to make a prediction line for a projectile similar to the one used in Angry Birds. When the player pulls back on the sling shot it will show the projected path of the projectile using a Line Renderer. The best help I have found so far is here. I can only get this to make a straight line though. I am not sure what I am doing wrong and any help would be great. Thank you ahead of time.

it’s too late. but i searching for the same formula now a days and i search a very useful tutorial.