Robustness: a quantitative approach