Oops, I made some mistakes in the formula I posted.