finish ecbd X-value calculation