calculate tax before complete state