Update resistance calculation