Calculation of electric potential from different approaches