For a particular user_id: If Event A occurs, sometimes event B will occur, sometimes not. But, if event B occurs, calculate the shortest time difference between event A & B.