I'm really confused about this transfer function
It's V_out = - (R_f/R_in) * V_in. You have it the other way round. It should be: -0.33 * V_in + 0.1375 * 12V.
As mentioned, it's good practice though not to rely on the power rails as a reference/offset voltage.