Hello! I think that it should be (mValue - mMin) in place of mValue, just in case mMin <> 0.