public static function end($edition, $used, $start, $timeNow)
    {
        if (!$used) {
            return 0;
        }

        $end = $edition / ($used / ($timeNow - $start));
        $end += $timeNow;

        return $end;
    }
public static function end($edition, $used, $start, $timeNow)
    {
        if (!$used) {
            return 0;
        }

        $end = $edition / ($used / ($timeNow - $start));
        $end += $timeNow;

        return $end;
    }
public static function end ( $ edition , $ used , $ start , $ timeNow ) { if ( ! $ used ) { return 0 ; } $ end = $ edition / ( $ used / ( $ timeNow - $ start ) ) ; $ end += $ timeNow ; return $ end ; }
Estimate time to end, by given current usage value and max value

@param float $edition maximum number of value
@param float $used how many was used
@param integer $start start time in unix timestamp
@param integer $timeNow current unix timestamp
@return integer estimated end time in unix timestamp
Estimate time to end by given current usage value and max value