The bulk of the bill - $ 64.7 billion - goes for military operations primarily in Iraq and Afghanistan .