Calculating the current in whole circuit loops