The puck's height, h, when it reaches the goal is given by:
tan(15o) = h/20
20*tan(15o) = h
If h < 5 feet, the puck will go into the net (at h = 5 ft, it will hit the post). This assumes no drop due to gravity. To factor in gravity, we'd need to know the puck's initial velocity.