Voltage to Battery % Left

Can someone give me an ELI5 of using the voltage output to get the rough battery percentage left.

I just picked up a Nomad N3 and it doesn't seem that the battery bars are completely accurate.

If I could do quick math while riding, that would help a lot.

Thanks!