def update_price_without_going_below_zero(prev_price, daily_return):
    """A stock can't be worth less than $0, so impose 0 as a lower limit as we update
    its price with today's return."""
    new_price = prev_price * (1+daily_return)
    return 0 if new_price < 0 else new_price