Preliminary distance to b-field formula