Simple unit-checking calculator