added formula for virtphp