In this post we will give the estimation of total Gold and Elixir you need to spend to maximise your buildings and troops level in Town Hall 4 for Clash of Clans (CoC) game.
The total of buy/upgrade cost is the total cost for buy a new unit and total for upgrade cost for all units. For new unit, the cost is sum up from level 1 to maximum level and for available unit the cost is sum up from their minimum level to the maximum level.
Defense
| Available Unit | New Unit | Available Unit Level | Max. Level | Total Buy/Upgrade Cost (GOLD) | Total Buy/Upgrade Cost (ELIXIR) | |
| Canon | 2 | - | 4 | 5 | 100,000 | - |
| Archer Tower | 1 | 1 | 3 | 4 | 48,000 | - |
| Mortar | 1 | - | 1 | 2 | 32,000 | - |
| Air defense | - | 1 | 1 | 2 | 112,500 | - |
| Wall | 50 | 25 | 3 | 4 | 901,250 | - |
| Spring Trap | - | 2 | - | - | 4,000 | - |
| Total | 1,197,750 | - |
Resources Buildings
| Building Names | Available Unit | New Unit | Available Unit Level | Max. Level | Total Buy/Upgrade Cost (GOLD) | Total Buy/Upgrade Cost (ELIXIR) |
| Gold Mine | 3 | 1 | 6 | 8 | - | 180,550 |
| Elixir Collector | 3 | 1 | 6 | 8 | 180,550 | - |
| Gold Storage | 2 | - | 6 | 8 | - | 150,000 |
| Elixir Storage | 2 | - | 6 | 8 | 150,000 | - |
| Total | 330,550 | 330,550 |
| Building Names | Available Unit | New Unit | Available Unit Level | Max. Level | Total Buy/Upgrade Cost (GOLD) | Total Buy/Upgrade Cost (ELIXIR) | Total Buy/Upgrade Cost (DARK ELIXIR) |
| Army Camp | 2 | - | 3 | 4 | - | 200,000 | - |
| Barrack | 2 | 1 | 5 | 6 | - | 258,700 | - |
| Laboratory | 1 | - | 1 | 2 | - | 50,000 | - |
| Clan Castle | 1 | - | 1 | 2 | 100,000 | - | - |
| Total | 100,000 | 508,700 | - |
| Troops Names | Current Level | Max. Level | Total Upgrade Cost (ELIXIR) | Total Upgrade Cost (DARK ELIXIR) |
| Giant | 1 | 2 | 100,000 | - |
| Wall Breaker | 1 | 2 | 100,000 | - |
| Balloon | 1 | 2 | 150,000 | - |
| Total | 350,000 | - |
Upgrade to Town Hall 5 = 150,000 Gold
Gold Grand Total = 1,197,750 + 330,550 + 100,000 + 150,000 = 1,778,300
Elixir Grand Total = 330,550 + 508,700 + 350,000 = 1,189,250