If the electric field E is known, the electric potential at b can be calculated by taking the line integral of E:

where a is our reference point where the potential is assumed to be zero. Changing the reference point will add a constant to the potential, but will not change the corresponding electric field.