The interest is given by:
where P is the principal, r is the interest rate in decimal form and t is the time.
In this case the principal is $800, the interest rate is 0.05 and the time is 0.5 years (six months is half a year), then the interest is:
Therefore the interest gained is $20