upstream downstream formula class 10