It can be done with more than four digits, if I understand your statement.
Here's how it works.
314938
-134893
------
180045
Lets choose the 4. Now add the other digits together, 1+8+0+0+5=14 Since the answer is greater than 9, add those digits together, 1+4=5. Last step, subtract 5...