Free tool to work out the depths of your foundations 

The calculator takes into considerations; soil type, species of tree, the tree's proximity to the foundations and climate conditions.