^Moving upstream & downstream
In such a case the boat is not crossing the river, rather it moves along or opposite to stream. Distance covered in the opposite to direction of river current is called upstream & that covered in the direction of river current downstream.
i.e. for a particular distance the still water time is the harmonic mean of upstream and downstream times.