def add_multiples(maximum):
    """Add all numbers that are multiples of 3 and 5 below the maximum."""
    total = 0
    for x in range(maximum):
        if x % 3 == 0 or x % 5 == 0:
            total += x

    return total