Fix ratio computation