Free tool to work out the depths of your foundations 

The Foundation Depth Calculator considers soil type, species of tree, the tree's proximity to the foundations and climate conditions.