Created function that returns xml date differences