Average Payment Period Of A Function