return ( $points && min( $Max, $new ) > $quota ) ? $new : $Base; #### if ($points > 18000 && $quota < 24) { return 24; }