Reversing calculation of ratio mixin