In AN3949 --ADC16 Calibration Procedure and Programmable Delay Block Synchronization, there are two formulae, one for single-terminal input and the other for differential input.

Is this formula the gain scaling formula after ADC conversion? Is Code the value stored in the result register after gain scaling?Where do the capacitance values Cs and Cn come from?