Using budgets to automate cost controls