The program then displays this information in a colour-coded icon. BatteryBar takes a smarter approach by maintaining historical data on how long it takes your battery to charge and discharge, and that allows it to make far more accurate predictions on exactly how much time you have left. Windows does something similar, of course, but using only a very basic algorithm that can be extremely inaccurate.
BatteryBar is a compact battery meter that monitors the status of your laptop battery and displays its remaining life - or, when plugged in, how long until the battery is fully charged - in a system tray icon.