Let $R$ be a graded ring and $S$ a multiplicatively closed set of homogeneous elements of $R$. Prove that $R_S$ is a graded ring, where
$$(R_S )_n = \{ \frac{r}{s} ∈ R_S : r,s \textrm{ are homogeneous, and } \deg r − \deg s = n\}.$$
I tried to prove that $R_S$ is a direct sum of $(R_S)_n$ where $(R_S)_n$ is additive subgroup but I found problems, for example: when I try to prove it's additive subgroup I take $\frac{r}{s}$ and $\frac{r'}{s'}$ two elements in $(R_S)_n$ so we have $\frac{r}{s} + \frac{r'}{s'} = \frac{ar+br'}{u}$ where $u = as = bs'$
Now, $\deg \frac{ar+br'}{u} = \deg(ar) - \deg(as) = [\deg(a) \deg(r)] - [ \deg(a) \deg(s) ] $.
So how can I prove this equals $n$?