final population calculation