Defense spending is about 15% of the federal budget. Which makes sense, because defense one of the key areas entrusted to the federal government, as compared to state and local governments. Leaving out spending from the layers of government assigned primary responsibility for things like health and education is a deception intended to make defense spending look artificially large.
As to your other point: my calculation results in an average. Total spending on defense divided by total spending gives you the average spending on defense as a percentage of average spending at local plus state plus federal levels.
As to your other point: my calculation results in an average. Total spending on defense divided by total spending gives you the average spending on defense as a percentage of average spending at local plus state plus federal levels.