You accidentally added `xdiff` twice in the return statement.

It should be: `return (xdiff + ydiff + zdiff) / 3`