In a country, the prevalence of malaria is observed to be 43 out of every 1000 people. The test for malaria is a 90% chance of detecting it when the patient is suffering from malaria. The same test yields a negative result in 95% of the cases of people not infected with malaria. What is the posterior probability that a person has malaria if test returns positive ?
what I have tried is-
$$\frac{0.90 \times 0.043}{(0.90\times0.043+(1-0.95)\times0.043)}$$
is this correct ??
or this-
$$\frac{0.90\times0.043}{(0.90\times0.043+0.95\times0.043)}$$

$P(Malaria|Positive Test)=\frac {P(Malaria\cap Positive Test)} {P(Positive Test)}$
$P(Postive Test)=P(Positive Test|Malaria)\cdot P(Malaria) + P(Positive Test|No Malaria)\cdot P(No Malaria)$
The problem in your first attempt is you multiply $P(Positive Test|No Malaria)\cdot P(Malaria)$ instead of $P(Positive Test|No Malaria)\cdot P(No Malaria)$
Spoiler below: