How is an ATAR calculated?

Can you answer this question?