public static function averageAmount($since = 0, $until = null)
    {
        $until = $until ?: time();

        return (int) self::where('created', '>=', $since)
            ->where('created', '<=', $until)
            ->avg('total');
    }