Well-pump energy calculation method