catching ValueError in max(budget)