A water barrel having water up to depth 'd' is placed on a table of height 'h'. A small hole is made on the wall of the barrel at its bottom. If the stream of water coming out of the hole falls on the ground at a horizontal distance 'R' from the barrel, then the value of 'd' is: