The optimal amount of studying is determined by comparing: