Add calculate_clock_bits to the example code.