Derive The Diode Current Direction