I got a broker returning a number other than 0, this may require a unit conversion. Also why is you using this calculation? For the case 0, multiplying by tick value will get swap cost per lot. So after it should be divided by the number of contracts per lot, and if it is a currency multiplied by 10000.

Maybe it would also be necessary to convert tick value to point value.

I have no other idea.