added formula for finding current