calculate people needed