Principles and practice of rating valuation