How to accurately judge the battery