Given a latitude and a distance west, return the change in longitude.

def change_in_longitude(lat, miles):
    """Given a latitude and a distance west, return the change in longitude."""

    # Find the radius of a circle around the earth at given latitude.
    r = earth_radius * math.cos(lat * degrees_to_radians)
    return (miles / r) * radians_to_degrees