Fix decimal precision and calculate rate