REM

  1. Divide argument-1 by argument-2.
  2. Remove all noninteger digits from the result of step 1.
  3. Multiply the result of step 2 by argument-2.
  4. Subtract the result of step 3 from argument-1.
  5. Assign the difference to your function result.