Calculating plant spacing to maximize productivity.