The right formula can be the difference between fresh-from-the-salon and faded in a month.