Given the probability of being infected with AIDS is $p = 0,3\%$, what is the probability that a person which has a positive test result, is indeed infected with AIDS?
The probability that an infected person is tested positively is $s = 99.5\%$ and the probability that a healthy person has a positive test result is $r = 98\%$.
Also, according to my notes the general formulae would be $\dfrac{100*(p*s)}{(p*s)+((1-p)*(1-s))}$, is this derived from the formulae of total probability?
This is an application of Bayes' Theorem.
Let $A$ be the event that one is infected with AIDS, $T$ the event of getting a positive test result. You are given
$$P(A)=0.003$$ $$P(T|A)=0.995$$ $$P(T|\bar{A})=0.98$$
and you seek $P(A|T)$. By Bayes' Theorem:
$$P(A|T) = \frac{P(T|A) P(A)}{P(T|A) P(A) + P(T|\bar{A}) (1-P({A}))}$$
Note that $P(T|\bar{A}) \ne 1-P(T|A)$; rather, it must be given separately. The numerical result is then
$$P(A|T) \approx 0.305 \%$$
Does this make sense? Yes - your numbers indicate an awful, useless test which gives a positive result to nearly everyone who takes the exam.