Description and application of a budget-diagnosis tool in COSMO