CTC Calculation