Loot
Gold/Elixir
Gold and Elixir can be stolen from three types of Resource Buildings: storages, mines/collectors and the Town Hall.
◾Storages: The percentage of Gold/Elixir that can be stolen from storages is 20% and is capped at 199k. This means that if more than 792k is being held in storages, it is subject to the cap.
◾Mines/Collectors: The percentage of Gold/Elixir that can be stolen from mines/collectors is 50% and is capped only by the storage capacity of the mine/collector.
◾Town Hall: There is an additional 1k of each resource that can be stolen inside the Town Hall.
Therefore, calculated loot = (20% x stored resources, up to 199k) + (50% x amount in mines/collectors) + 1k. This means that the maximum calculated loot, for each resource, that can be stolen from 1 opponent (with maxed mines/collectors and full storages) is: 199k + (6 x 75k) + 1k= 650k.
These figures are before the loot multiplier is applied. The loot multiplier is what is behind the loot "penalty" and the loot "bonus". The amount of available loot = calculated loot x loot multiplier. The loot multiplier is determined as follows:
◾5% for attacking someine with a Town Hall (TH) 4+ levels lower than the attacker's.
◾25% for attacking someone with a TH 3 levels lower than the attacker's.
◾50% for attacking someone with a TH 2 levels lower than the attacker's.
◾90% for attacking someone with a TH 1 level lower than the attacker's.
◾100% for attacking someone with a TH level equivalent to the attacker's.
◾110% for attacking someone with a TH 1 level higher than the attacker's.
◾150% for attacking someone with a TH 2 levels higher than the attacker's.
◾200% for attacking someone with a TH 3+ levels higher than the attacker's.
Maximum loot after the multiplier is applied is [(200%) x (199k + 6 x 75k)]+1k = 1.299 million of either Gold or Elixir. In practice this is almost impossible for someone to actually raid, though.
The comprehensive foruma for finding available loot is as follows:
loot = (loot multiplier) x [(20% x storage amt, 199k max) +(50% x mine/collector amt)] + 1k
NOTE: The 1k that the Town Hall stores is subject to the PENALTY but not the BONUS, as 1k of each resource is the most it can ever store.