You're expression is correct if it's asking for a number that is less than 7. But if the problem is asking for some number less than seven as in seven less some number, then it's 7-n. For example: 4 less than 7 is 7-4.
Hope this helps!
8.6m questions
11.2m answers