How the Barnett formula works, how it funds Scotland and why UK spending decisions directly affect the Scottish Budget.