Error estimation and uncertainty quantification for first time to a threshold value