17.0 hours
Reasonable load range: 13.6 hours to 25.5 hours
Calculation
24,000Wh × 85% usable efficiency ÷ (1200W × 100% duty cycle) = 17.00 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 1500W continuous capability and about 1700W surge capability. Watt-hours alone do not prove compatibility.