calculate tax base invoices