Magnetic Flux Through A Loop Formula