Please help for Taxable Income of Trust and Estate and DNI

Please correct me if I am wrong!!!!!!!!!!!!!! Taxable income of trust and estate Rent +Interest (only taxable) +dividend +Capital gain allocable to the both corpus and the income) -trustee /administrative fee related to the both (corpus and taxable income) Qualified charitable contribution -exemption (300/100/600) -Income distributable to the beneficiary =taxable Income. For DNI Rent +Interest (taxable and non-taxable) +dividend -trustee /administrative fee (which is not related to the corpus but include which is for the taxable and non-taxable income) -Qualified charitable contribution = DNI