How To Find The Average Cost Of A Function