Dakota County interview question

How to prepare formula.