public function getLifetimeByDay($days=45)
    {
        $dateTime = new DateTime();
        return $this->normalizeDate($dateTime->modify('+'.max(1, $days).' days'));

    }
public function getLifetimeByDay($days=45)
    {
        $dateTime = new DateTime();
        return $this->normalizeDate($dateTime->modify('+'.max(1, $days).' days'));

    }
public function getLifetimeByDay ( $ days = 45 ) { $ dateTime = new DateTime ( ) ; return $ this -> normalizeDate ( $ dateTime -> modify ( '+' . max ( 1 , $ days ) . ' days' ) ) ; }
Generate lifetime in format.

@param int $days Days of lifetime.

@return string Lifetime in ISO8601.

@throws Exception
Generate lifetime in format .