When to use which F-Test?

Seems like there are two formula for the f-test:

f = Regression MSS / Residual MSS

and:

When do we use each one?

The formulae are the same:

Regression MSS = RSS / k

Residual MSS = SSE / [n − (k + 1)]