This application is designed to help you choose the battery for your needs.
The formula is close to reality and includes such additional variables as Inverter or UPS efficiency, coefficient of battery discharge depth, and available capacitance ratio.