Levy

==Description==
From your Town Hall you can levy gold from your population ten times per day. This resets back to ten at 00:00(24 hr) or 12:00AM GST. You can also perform extra levies by paying with Diamonds (Impose).
==Formula==
The quantity of gold you gain with each levy is determinated by:
*Sum of dwellings levels ===> Resident Level
*Finance Hall level ===> Finance Bonus
*Popularity ===> Popularity
*Alliance Tech ===> Tech
*+50% premium income ===> Diamond Bonus (You can by this for 30 Diamonds or Cash Gift each 7 days in the Town Hall, it's the icon with the gold coins)
Collection Base will the calculated with:
 Resident Level * 50
With those variables the complete formula is:
 
 [ Collection Base + ( Collection Base * Finance Bonus * 0.0036 ) + ( Collection Base * 0.2 * Popularity ) ] * ( Tech * 0.02 + 1 ) * Diamond Bonus
To order it better, you can use different variables such as:
 (Collection Base * Finance Bonus * 0.0036) ==> A
 
 (Collection Base * 0.002 * Popularity) ==> B
 
 (Tech * 0.02 + 1) ==> C
And the formula will now be:
 [(Collection Base + "A" + "B") * C ] * Diamond Bonus
==Example==
Resident Level = 80
Alliance Tech = 1
Popularity = 25
Finance Hall Level = 5
Without the premium gold boost
 STEP I
 
 80 * 50 ==> 4000
 
 0.02 * Popularity => 0.002 * 25 => 0.05 ==> B
 
 Tech * 0.02 + 1 => 1 * 0.02 + 1 => 1.02 ==> C
 
 Resident Level * 50 => 80 * 50 => 4000 ==> Collection Base
 STEP II
 
 (Collection Base * Finance Bonus * 0.0036) ==> A
 
 (Collection Base * 0.02 * Popularity) ==> B
 
 (Tech * 0.02 +1) ==> C
 
 
 ( 4000 * 5 * 0.0036 ) ==> A
 ( 4000 * 0.002 * 25 ) ==> B
 ( 1 * 0.02 +1 ) ==> C
 
 72 ==> A
 200 ==> B
 1.02 ==> C
 
 
 
 
 STEP III
 [((Collection Base + "A" +"B") * C] * Diamond Bonus
 
 With Diamond Bonus INACTIVE, the value is 1
 With Diamond Bonus ACTIVE, the value is 1.5
 
 [(4000 + 72 + 200) * 1.02] * 1
 
 4272 * 1.02
 
 4357 gold
This process will always round down variables "A" and "B", so the result can be about +20 or -20 gold of the realistic one because of that.
Category:Formulas
Category:Resources