Hello, as far as I can't understand your question:
you have the total cost, let us call this Tc, this Tc is made up from a base price, let us call this B, and also a Service cost, let us call this S, and a Tax on the service cost let us call this Tx, thus:
T_{c} = B+S+T_{x}
and...