this should be correct:
.Cells(i, 16).Formula = "=IF(G" & i & "=0,"""",IF((O" & i & "/G" & i & ">=90%),"""",O" & i & "-(G" & i & "*0.9)))"