Write two factors on which the rate and direction of osmosis depends

The two factors on which the rate and direction of osmosis depends:
(a) Pressure gradient
(b) Concentration gradient