Lets break Down the numbers you see with a specific building. No building in general just a break down of how it works.
Troop count = 2000
Attack = 5000
Defense = 4000
So for each single troop you get 5000 attack points and 4000 defense points.
So raw stats would be 2000*5000plus 2000*4000
= 10,000,000plus8,000,000 or 18,000,000 then to get combined stats we would divide that by 50 = 360,000 cs