Computing the Research Credit for Consolidated Groups