compute tds original