dynamically calc cost and people fed