wire display
first draft of calculate function