It's worked out by the Chancellor of the Exchequer with help from his office, the Treasury.
At the moment, the Chancellor is Gordon Brown.