def _quarter(q, on_court_width):
    """
    Get the quarter 1-4 based on the starting court width at the time
    """
    if on_court_width < 250:
        q = 1
    elif 250 <= on_court_width and on_court_width < 500:
        q = 2
    elif 500 <= on_court_width and on_court_width < 750:
        q = 3
    else:
        q = 4

    return q