The energy spectrum of two interacting electrons confined in a quantum dot in the presence of a magnetic field has been calculated by interpolating between the eigenenergies in the high- and low-field limits.