Updated the method for TimeSpan matching

revised the method for matching two TimeSpans