Find closet <tr> for metric calculation input