Battery remaining script