A simple Java calculator for a DTG internal.