rate of the water current is 1km per what? second, minute, hour?
In which direction is it flowing? towards the shop or towards the home?
Is the river running in a loop in both directions? It must. If you have an equation where the current Helps the boat one way, then it must make it harder the other way... since you haven't included info for that balance, than I am assuming that the river is running in a loop, (which is not possible IRL)
Please provide actual question.