x=estimated time
y=actual time
What is needed is the actual time be within 10 hours of the estimated time.
That means that if project is finished within 10 hours before the estimated time (i.e. x>y), then
x-y<10 which is equivalent to -10<y-x (see * below)
And if project is finished within 10 hours after the estimated time (then y>x)
y-x<10
Combine the two conditions, because the estimate can be over-estimate, or underestimate,
we have
-10<y-x and y-x < 10
or, written in a single line,
-10 < y-x < 10
*Note:
x-y<10
subtract 10 from both sides
-10+x-y < 10-10 => -10+x-y < 0
now subtract x-y on both sides
-10+x-y-(x-y) < -(x-y) distribute the parentheses
-10+x-y-x+y < -x+y simplify
-10 < y-x
So x-y <10 is the same as -10 < y-x