what is the horizontal distance a slingshot on a 25 m cliff will shoot if it's initial velocity is 240 m/s and it's inclined at 45 degrees

y = 25 + 9.8/(240cos45)^2) x^2 ?

^^would this be the right formula?