def sum_even_numbers(limit: int) -> int:
    """
    Calculate the sum of even numbers up to a given limit.
    Iterate through numbers from 2 to the limit (inclusive) and
    add the even numbers to the total. Use a loop to accumulate the sum.

    Parameters
    ----------
    limit : int
        The upper limit for calculating the sum of even numbers (inclusive).

    Returns
    -------
    int
        The sum of even numbers up to the limit, or 0 if the limit is below 2.

    Examples
    --------
    >>> sum_even_numbers(10)
    30
    >>> sum_even_numbers(3)
    2
    """
    raise NotImplementedError("Replace this line with your code.")
