Dividendes received deduction question

Sales 20,000 Expense <22,000> <2,000> Dividend Income 10,000 Taxable Income $8,000 Taxable Income $8,000 x DRD Rate 80% (Assume 80% for this example) DRD <$6,400> Taxable Income $1,600 -If DRD brings a loss situation, you can take full DRD -If Taxable Income remains after DRD, only a partial DRD (T.I. x DRD %) is allowed Why in this example do you multiply 80% by the taxable income instead of 80% by the dividend income? It would reduce taxable income to 0 and thus no taxable income would remain for partial DRD rule.