56.7 hours
Reasonable load range: 28.3 hours to 113 hours
Calculation
20,000Wh × 85% usable efficiency ÷ (300W × 100% duty cycle) = 56.67 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 600W continuous capability and about 650W surge capability. Watt-hours alone do not prove compatibility.