Calculation of Trees Needed