How to determine the battery quality