added formula for convenience