added DateHelper class to calculate Date class, and updated the processReturn function to use this