Functions for calibrating control charts