Add "calc" function