There are many features in Clash of Clans. If you are an experienced Clasher, you should know that there are some calculation applications dedicated to clash of clans, like Loot Calculator, Army Cost Calculator, etc. Here I will show you how those calculators work.
Loot Calculator is probably the most complicated Calculator. The calculation doesn't only sum up the total resources, but also have a maximum capacity of loot available, loot multiplier, etc. related to the difference of the TH level between the attacker and defender.