eight times the difference of a number and there

if your number is x, then

8|x-3|

(absolute values since you don't say which way the difference was taken)