The magnitude of the electric dipole moment is equal to the product of the magnitude of their charge and the distance between the two charges.
And it is given as
p=q×d
It is a vector quantity
Its direction is from the negative charge to the positive charge