I think the real formula was
objectxInScene - camerax
objectyInScene - cameray

Lets think it through:
Object is in position 100, 100
Camera is in position 90, 100
So we expect that the object will be shown slightly right from camera location. With above formula it becomes
100-90, 100-100 = 10, 0, which is slightly right