Creates script to calculate populations