Calculate battery bank capacity from load, backup time and depth of discharge
https://www.electronetautomation.com/calculators/battery-bank-sizing