A simple or not-so-simple calculator