Explain date diff for order statistics