Management accounting

What is the primary purpose of a budget in management accounting?