move calculator functionality to ddg

This may or may not be temporary, but it's better than the calculator
being totally broken.