Bolt\AccessControl\Login::throttleUntil PHP Method

throttleUntil() private method

The amount is increased exponentially with each attempt: 1, 4, 9, 16, 25, 36… seconds. Note: I just realized this is conceptually wrong: we should throttle based on remote_addr, not username. So, this isn't used, yet.
private throttleUntil ( integer $attempts ) : DateTime
$attempts integer
return DateTime
    private function throttleUntil($attempts)
    {
        if ($attempts < 5) {
            return null;
        } else {
            $wait = pow($attempts - 4, 2);
            return Carbon::create()->addSeconds($wait);
        }
    }