calculates the taxes owed to the state and county