added formula for newlib