How to measure Lithium battery voltage with the nRF51 ADC
There is indeed a calculation error, can you check that out...
Just want to mention that this was corrected, see update in accepted answer.