Understanding Table Calculations: Theory and Practice