def where_in(name, value, big_range):
    """Determines which bucket of big_range 'value' lies in."""
    bottom = big_range[0]
    top = big_range[1]
    step = big_range[2]
    i = 0
    bot_range = bottom + i * step

    while bot_range < top:
        bot_range = bottom + i * step
        top_range = bottom + (i + 1) * step
        i += 1
        if value >= bot_range and value < top_range:
            tag = name +  " {0}-{1}".format(bot_range, top_range)
            return tag