Gradebook

How can I make this formula?