import math


def calculate_available_slots(count):
    """
    Get the target number of species for the genus.

    a. If we have <= 5 species TOTAL in a genus, submit everything we have.
    b. If we have > 5 but <= 12 species TOTAL of genus, submit 50% of them.
    c. If we have > 12 species in a genus, submit 25% of what we have.
    """
    if count <= 5:
        return count
    if count <= 12:
        return math.ceil(0.5 * count)
    return math.ceil(0.25 * count)