How to change the sign of a variable from positive to negative