Terminal Gravity?

I have read a ton posts that mention terminal Gravity, I know that is when the yeast are done. But, how does one know what the terminal Gravity should be. Is there an equation that helps or is it just done when it is done?

wort composition, temp, … To many variables to account for.

It’s done when it’s done. There is no way to predict what the FG will be.