The battery sizing formula
Nominal capacity (kWh) = daily AC energy × days of autonomy ÷ inverter efficiency ÷ depth of discharge × temperature factor.
Amp-hours = kWh × 1,000 ÷ system voltage.
Example: backing up 10 kWh a day for one day with a 95% efficient inverter and lithium iron phosphate cycled to 90% depth of discharge needs 10 ÷ 0.95 ÷ 0.90 = 11.7 kWh nominal, or 244 Ah at 48 V, which is three 5 kWh batteries.
This is the standard stand-alone PV design method taught in Sandia National Laboratories' recommended design practices and used by most off-grid system designers.