# Population

is a stat that counts the number of people in a Town. The maximum population is increased by building .

## Experience

Experience in Township earned per tick is given by the following formula:

$\displaystyle{ \text{Base Experience} = \max \left (\left ( 1 + \frac{\text{Happiness %}}{100} + \frac{\text{SkillXPBonus %}}{100} \right ) \times \frac{\text{Current Population}}{100} \times \frac{\text{Tick Length}}{10}, 1 \right ) }$

Where $\displaystyle{ \text{Tick Length} = 300 }$, being the number of seconds taken to gain a tick.

## Gaining Population

The chance of gaining additional population when advancing one tick is given by the following formula:

$\displaystyle{ \text{Population Gain Chance} = \min \left (1.4 - \frac{\text{Current Population}}{\text{Population Limit}}, 1 \right ) }$

Where 1 indicates a 100% chance of gaining population, and 0 indicates a 0% chance of gaining population

If the roll for gaining population succeeds, the amount of population gained is given by the following formula:

$\displaystyle{ \text{Population Gain Rate} = \min \left (\left \lceil \frac{\text{Population Limit}}{2000} \times \frac{\text{Tick Length}}{10} \right \rceil, \text{Population Limit} - \text{Current Population} \right ) }$

90% of the population gain will be from migration, where the new person will have an age randomly distributed between 16 to 50, and 10% of the population gain will be from births, with an age of 0. Below 10 population, all population gain is from migration.

## Aging

One year of age is equivalent to 8.7 ticks.