Depends on the power used by the device and how much of its capabilities are used.
A cellphone would last a very long time, a 17 inch laptop not long at all.
A computer in sleep mode much longer than one with full brightness on the screen running a demanding program.