final working calculator