CPDO WITH FINITE TERMINATION: MAXIMAL RETURN UNDER CASH-IN AND CASH-OUT CONDITIONS