extracted the logic for finding the time stamps.
extracted the logic for mutating value.