upstream function

Upstream River Distance