adding TDM calculate