Have you measured the analog reference voltage at the Vref pin? If it's not 5.0V your calculations will be off.
If the max cell voltage is 4.2 you don't need a voltage divider for the first cell and the voltage divider for the second cell can be /2 instead of /4. Those changes would give you more precision at the expense of slightly more complicated math.