Title: A quality and risk-adjusted cost function for banks