7795 X=XD-FPD*(XE-XD)/(FPE-FPD)