Let's make a deal: how budget negotiations work