The runtime formula, with a worked example
For a steady load the energy method is all you need: runtime (h) = battery Wh x usable depth of discharge x inverter efficiency / load W. Battery watt-hours are amp-hours times nominal voltage.
Example: a 100 Ah, 12 V LiFePO4 battery stores 100 x 12 = 1,200 Wh. At 90% usable depth of discharge that is 1,080 Wh. Running a 100 W AC load through a 90% efficient inverter gives 1,080 x 0.90 / 100 = 9.72 hours, or about 9 h 43 min. Run the same 100 W as a DC load (no inverter) and the answer rises to 10.8 hours.
Portable power stations usually quote capacity in Wh already (for example 1,024 Wh on a 51.2 V LiFePO4 pack). Their built-in inverters typically deliver 80-90% of stored energy at the AC outlets, so a 300 W load on a 1,024 Wh station at 85% efficiency lasts roughly 1,024 x 0.85 / 300 = 2.9 hours.