import math


def calculate_preset_rounds(player_number):
    """
    Calculation function for the number of rounds preset, based on the number of players

    :param player_number: Number of players in the game
    :return: Preset number of rounds of the game
    """
    return max(6, math.floor(player_number / 2) * 2)