Mavlink message for battery status

The value displayed in current_bettey in the BATTERY_STATUS item is 380. So how is it calculated?