Correct interpretation of reverse-coded

Now, for a 1 to 7 scale, reverse(5) = 3, reverse(6) = 2, .etc.
Before, I was doing reverse(x) = -x which I think is completely wrong.