added global tax calculation