Cost-benefit analysis

How is a cost-benefit analysis is used at different levels of public budgeting and governmental and nonprofit accounting