How to estimate number of hours remaining before battery dies?

Have you noticed how wrong your laptop or tablet gets this. They have vastly more engineering resource than you and they can't get it right. It is not something that ca be accurately predicted. There are too many variables.