COMPUTE answer = 3*var-1
That is a reference to the variable var-1, and not var - 1.
var-1
var - 1
COMPUTE answer = 3 * var - 1
Recommended, opinion.