A General Formula For Bearing Capacity