Set the speed and direction of your boat, plus the speed and direction of the river current, and see if you can reach the dock on the opposite side of the river.