It's not how much money you have but how you use it. The US has qualitative advantage over China in terms of advance tech and weapons and the US is far more experienced in war and defeat. How many wars has China actually fought and won? You can count them on 2 fingers. I doubt if it will be a direct war as both sides know of the consequences and like the cold war it will be a war of attrition using all indirect means at their disposal. For China to make gains it needs to challenge all the Western world installed puppets and tin pot rulers who supply resources, materials labour and that in itself a huge task as the Western world has mastered the art over a few centuries.
It all boils down to the size of the economy something you don't understand.. Without economy lets see how far will US go... You think Germany / France lack the tech know how - they don't but they will never be in a position to challenge the biggest economies for obvious reasons. Its only a matter of time if the trajectories remain China will be the biggest economy and power (minus the global terrorism that is hallmark of US).