How To Work Out Range Of Function