I have to find the number of total permutations of $ABCDEFG$ that don't contain $DEFG$ together (in any order, like $DEFG$, $FGDE$, $GFED$, etc.) So far, I found the total number of permutations for the set $$ABCDEFG = 7! = 5040$$
and I figured I'd calculate the number of permutations for $$DEFG = 4! = 24$$
Then treat the subset $DEFG$ (let's call it $X$) as one element of the main set, resulting in $ABCX$ giving again $4! = 24$ permutations where $DEFG$ are together. So my result would be the number of total permutations $5040 - $(24*24)$ = 4464$ permutations.
Did I get the right answer or am I missing something? Anything you would've done differently?
Your answer is completely correct and is the approach I thought of. There are other ways to approach the problem, but I like this one.