The Current Account as A Dynamic Portfolio Choice Problem