Is it possible to calculate TX size from its hex? How to calculate transaction size from its hex-encoded representation, so i can include transaction fees per kb ?
If your hex string looks something like "12abcd" then it uses two hex characters per byte.  Just take the length of the hex string, divide it by two to get the number of bytes in the transaction, and then divide by 1024 to get the number of KiB.