When you enter your dividend information, Line 40425 – Federal dividend tax credit should automatically calculate.
Please note that foreign dividends do not qualify for this credit.