Calculate eta squared for two-way repeated measures ANOVA

Hi everyone!
I did a mixed two-way repeated measures ANOVA.
I have an error for the within-subjects (where factor 1 and the interaction factor1*factor2 are analysed) and an error for the between-subjects (where factor 2 is analysed).

How should I calculate the effect size for factors 1 and 2? which is the sums of squares I should use as the total SS in each case?

Thank you!