Thus, to calculate loan originator compensation for retail loan officers for purposes of applying the qualified mortgage and high-cost mortgage thresholds, creditors would have to determine, at the time the interest rate is set, what compensation a retail loan officer would be entitled to receive if a particular transaction were consummated.