Battery low power alarm calculation