Business & farm

Thank you, but I must not have explained well initially. I suppose, upon further research, I'm referring to would become "retained earnings" not distributed in a tax year. Can that money be invested into cash flow assets (which include liabilities that produce income, ie: a mortgage on a rental income property) before the end of the tax year to zero out of the profit's that would have otherwise been retained?