Computes the distance between two known depths in a rectangular open channel using the direct step method for gradually varied flow profiles.