calculations oik
on calculate, joption pane choice to save output to file