Calculation time difference between two document

This seems to be the only solution.