The Scottish Government's budget is determined by means of a population-based formula (the Barnett formula). The United Kingdom Parliament votes the necessary provision to the Secretary of State for Scotland, who, in return makes grants to the Scottish Government as set out in the Scotland Act 1998. Provision for the Scotland Office and the Office of the Advocate General are found from within these resources. The Scottish Government however makes its own spending decisions on devolved programs within the overall totals, subject to approval by the Scottish Parliament.