Battery adjustable resistance calculation