consolidated tax calc functions. added i/o's