Error in calculation for TRISE and FREQ for I2C

the code x / 1000 * 1000  == x 
It should be  x/1000000 for I2C1_TRISE and I2C1_CR2_FREQ
Another way for saying this is when pclk1 = 2Mhz I2C1_CR2_FREQ should be 2 and I2C_TRISE should be 3