def convert_coordinates(coordinates, position):
    """
    Reverse complement a zero-based position coordinate if needed for the given
    range of coordinates including the strand of the coordinates.
    """
    if coordinates[3] == "-":
        length = coordinates[2] - coordinates[1]
        position = length - position - 1

    return position