Why should I have the wrong voltage value when I use another way to calculate it?
The positive terminal of the source isn't at 10 V relative to ground, it's at 10 V relative to the negative terminal of the source.