Investment and Financing Policies on Credit Risk