calculator updated with a table