Somewhat more efficient view calculator.