Octet conversion trouble

The original value is supposed to be octets. Here is an example of a reading where this went in 16998667560342 and after the get_rate returned this 342277.02682026796