Right, i would add that in cold war USSR spend 50% of GDP in army. More your government is respectful of citizen and don't tax them high more your military alliance need to be rich.
if your enemy have a 1000 billion GDP and spend 25% of his wealth in army cause it's a violent socialist country you need to have at least 5000 billion GDP to spend the same amount at 5%.