A simple Python calculator for a DTG internal.