def calc_beta_mode(a: int, b: int) ->float:
    """
    This function calculate the mode (i.e. the peak) of the beta distribution.

    :param a: First shape parameter of the Beta distribution
    :param b: Second shape parameter of the Beta distribution
    :return: The mode
    """
    return (a - 1) / (a + b - 2)
