Both STRET and STRETD measure the average annual return that you will get on an investment, according to your input variables being met. They can be calculated over any time period before or after tax.
The difference between them is what assumptions is made with the dividends. STRET assumes that the dividends are invested at a specified interest rate while STRETD assumes that they are used to purchase more stock.