Add functions to calculate A,B and C of TD retrieval derivation