Total energy calculations in the DFT on binary compounds