As a brief background, each subject is rating all his/her activities within the day (called instances). I want to calculate the sample size based on the number of instances (nested within each subject). I am currently confuse on how to do this. i have read using r or f squared or is there a better alternative?

Thank you for the help.