Calculations for resistance lab