PRD-3903 - Fixing the date diff function