def calc_merge_track_num(num_tracks: int, max_tracks: int) -> int:
    """Calculate the number of tracks to concatenate
    so that the final number of tracks generated is less than MAX_TRACKS

    Args:
        num_tracks (int): The number of tracks
        max_tracks (int): The maximum number of tracks possible

    Returns:
        int: The number of tracks to merge
    """
    merge_num = 1
    seeking_merge_num = True
    while seeking_merge_num:
        merge_num = merge_num + 1
        if(num_tracks / merge_num < max_tracks):
            seeking_merge_num = False
    return merge_num