Converting a Ratio into percentage and vice versa