What are the degrees of freedom in trend analysis?

And what goes in the denominator?

Does it matter what type of trend analysis you are doing, or are the df and denominator the same?

This isn't a homework question, I'm just trying to understand a text and notes that really don't explain.

Thanks