Sarnoff interview question

How would you implement an earned value system?