As an example, I need to pay €100 to this business, and there are 2 separate fees I need to also pay, the fee for the payment processor and the VAT (Value Added Tax).
I know that the fee for the payment processor is 2.4% + .24c and that the VAT is 23% which is only charged on the processor's fee. I also have found out that what I need to pay is €103.35 to reach my goal of €100, but I'm hoping that there is a formula to make this process simpler than guessing, getting it wrong, and trying again.
Basically, I want to plug the amount that I need to pay the business into a formula to find the total that I need to pay to cover the fee and tax as well.
I have a formula (sort of) to calculate how much of my payment will be remaining after fee and VAT: C = Payment F = Processor Fee V = VAT € = Remaining after fee and VAT
(C * 0.024) - 0.24 = F
F * 0.23 = V
C - (F + V) = €
I appreciate the help!
Suppose you need to pay a net of $N$ to the business. Let the actual amount you give be $A$. We know $N$ and want to find $A$.
The processing fee is $(0.024)A +0.24$. In addition, VAT has to be paid on that, an amount equal to $(0.23)\left[(0.024)A+0.24\right]$.
So the total lost from $A$ to fee and VAT is $(1.23)\left[(0.024)A+0.24\right]$. It follows that $$N=A-(1.23)\left[(0.024)A+0.24\right].\tag{1}$$ We want to solve for $A$ in terms of $N$. Expand the right-hand side of (1). We get $$N=(1-(1.23)(0.024))A-(1.23)(0.24).$$ Solving for $A$, we get $$A=\frac{N+(1.23)(0.24)}{1-(1.23)(0.024)}.\tag{2}$$
For $N=100$, this calculates to $103.34597$. But probably we would round this correct to $2$ decimal places.
I could have used letters for the fee components and the VAT rate to make the formula general. However, how to modify for changing fees and VAT should be clear from the derivation and structure of Formula (2).