def get_fuel_for_mass(mass):
    """
    Fuel required to launch a given module is based on its mass.
    Specifically, to find the fuel required for a module, take its mass,
    divide by three, round down, and subtract 2.

    >>> get_fuel_for_mass(12)
    2
    >>> get_fuel_for_mass(14)
    2
    >>> get_fuel_for_mass(1969)
    654
    >>> get_fuel_for_mass(100756)
    33583
    >>> get_fuel_for_mass(2)
    0
    >>> get_fuel_for_mass(5)
    0
    """
    return max(int(mass/3) - 2, 0)