i tried checking the notes but most of these work when we have a total FOC order type where all items are Free. here is the solution we have designed now:
we added a new condition type for use tax. the purpose of this cond type is just to call vertex for the line item. we are passing the cost value to vertex in user exit now and all calculations will happen in vertex and wont flow back into SAP.