Deductions & credits

Foreign Capital Gains amounts = Foreign Dividend amount - Foreign tax paid.  is this correct?

 

foreign tax paid and income

--------------------------------

Foreign stock     Foreign tax paid   Dividends  amount

A                                $xx                      $yy

Foreign Capital Gains amounts= $yy- $xx