The electric energy stored in a cube