Make sure your hex position comes in as a U32 integer (or convert it to that if necessary). Then just do the math and add or subtract from that number. You can display the U32 in hex format by going into the properties of the control, indicator, or constant.