I cannot get the correct answer - $2016$.
What I have tried so far is thus: the number $7$ can occur $1, 2, 3,$ or $4$ times. Since it is a combination we do not care if the number starts with zero or not since it is a combination and not a number. Therefore:
$(1*9*8*7 + 1*1*8*7 + 1*1*1*7 )*4 = 2268$
where $4$ is the order it can appear.
What should i do instead to get it correct?
Hint: this is a trick question. How many times at most can the number 7 occur assuming numbers cannot repeat?
I'm leaving my earlier hint below, because it is a very simple, general method that gets also the right answer in this case.
Hint: think about
how many 4 digit numbers there are altogether where digits don't repeat?
how many 4 digit numbers are there with no 7s where digits don't repeat?
How can you define this in terms of 1. and 2.?