Calculator with unit conversions and variable assignment