A new app can tell you how much life your battery has left in it.