Changed rate formula a bit.