How to evaluate this equation?