A confidence interval is a range of plausible values for a parameter, built by a method that captures the true value a set share of the time, such as 95%.
For a mean it is usually x̄ ± t* × s/√n: the sample mean plus or minus a critical value times the standard error. Example: 100 delivery times have a mean of 32 minutes and a standard deviation of 10. The standard error is 10/√100 = 1 and the t critical value for 99 degrees of freedom is 1.98, so the 95% interval runs from about 30.0 to 34.0 minutes. Higher confidence gives a wider interval, and more data a narrower one, shrinking with √n: halving the width takes four times as many deliveries.
The classic trap is the interpretation. Once computed, this particular interval either contains the true mean or it doesn't; the 95% is the long-run hit rate of the procedure. You can see it in a simulation: draw 1,000 samples of 100 from a population whose mean is 32, build a 95% interval from each, and about 950 of them contain 32 (944 in one run). If you want a probability statement about the parameter itself, that is a Bayesian credible interval.
For a proportion the usual interval is p̂ ± 1.96 × √(p̂(1 − p̂)/n). If 120 of 1,000 visitors convert, p̂ = 12% and the 95% interval is about 10.0% to 14.0%. With small samples or rates near 0% or 100%, use the Wilson interval instead, which never leaves the 0 to 1 range. For an A/B test, build the interval for the difference: 12% against 10% with 1,000 visitors in each arm gives a lift of 2 points with an interval from about −0.7 to +4.7 points, so the data can't rule out no effect.
When there is no simple formula, as for a median, an AUC or a ratio of two means, use bootstrapping: resample the data with replacement thousands of times, recompute the statistic each time, and take the 2.5th and 97.5th percentiles of the results as a 95% interval.
Don't confuse it with a prediction interval, which is a range for a single new value rather than for the mean. For one new delivery it is 32 ± 1.98 × 10 × √(1 + 1/100), roughly 12 to 52 minutes, far wider than the 30 to 34 minutes for the mean.
Interview follow-ups: how a confidence interval relates to a p-value (a 95% interval for a difference that excludes zero matches p < 0.05 in a two-sided test), whether two overlapping 95% intervals mean the difference isn't significant (not necessarily: the interval for the difference is narrower than the two intervals combined, so they can overlap while the difference is significant), and what makes an interval wider (a higher confidence level, more variable data or a smaller sample).