It actually depends on how large that battery is and how large the load on the battery is.
Some are built to last, and other are built to provide just enough to shut a system down properly. It is best to check with the MFR of the unit to determine how long it will last.