I’m trying to use PHP to display a breakdown of fees when sending money from the USA to the UK using bitcoin.
My script attempts to calculate the fees two different ways, and then crosscheck them to ensure they are correct.
My problem is that I can’t get the calculations to crosscheck.
Here’s the output, which should help explain the problem:
I believe the Amount En Route method is correct, however I can’t get the individual fees in USD to match up, as each fee has to be calculated by accounting for previous fees paid.
I’m hoping the community can help me find where it’s all going wrong.
Here’s the code:
Thanks for your time.