OK, let's think together.
* First, I will calculate the area of the intersection between the rectangle and the upper half of the big circle with radius $R$, assuming the rectangle goes from the center of the circle and up. As shown:
$ and, hence, area of $\frac{\theta}{2 \pi} \pi R^2$
2. one small triangle on the left with area $\frac{1}{2}(\frac{w}{2}) (R \cos(\frac{\theta}{2}))$
3. one small triangle on the right with area $\frac{1}{2}(\frac{w}{2}) (R \cos(\frac{\theta}{2}))$
* Finally, your area can be calculated by subtraction as follows: $$ A = \frac{\theta_1 R^2}{2} + \frac{w R}{2} \cos(\frac{\theta_1}{2}) - \frac{\theta_2 r^2}{2} - \frac{w r}{2} \cos(\frac{\theta_2}{2}). $$
where $\theta_1 = 2 \tan^{-1} (\frac{w}{2R})$ and $ \theta_2=2 \tan^{-1} (\frac{w}{2r})$.