Different places may do it differently, but SF bases it off of a cap for the monthly payment for the mortgage. As interest rates went up this forced the price lower and some people had to sell at a loss.
Roughly its monthly payment => a third of 90-110% of AMI.
Roughly its monthly payment => a third of 90-110% of AMI.