An Optimal Control Problem for Borrowing