Updated overflow check for voltage and charging