calc()

Section 7.4.5 shows how calculations with scans can be done.