The t-value should be used instead of the z-value when calculating confidence intervals when the sample size is small (less than 30) or when the population standard deviation is unknown. The t-value is more appropriate for these cases because it takes into account the fact that the sample size is small or the population standard deviation is unknown.