Working on subtract else if syntax.
log simplification for IV < base