calculates e to a given depth