If ratio is between 0 and 1, subtract from 1.