21.2 hours
Reasonable load range: 8.50 hours to 53.1 hours
Calculation
500Wh × 85% usable efficiency ÷ (20W × 100% duty cycle) = 21.25 hours.
What can change the result
Actual device wattage, battery age, ambient temperature, inverter standby draw, conversion losses, power-factor behavior and cycling frequency can all reduce or extend runtime.
Check output before connecting
The battery or UPS needs at least 50W continuous capability and about 60W surge capability. Watt-hours alone do not prove compatibility.