Deductions & credits

Ok so when they say "all items of income, etc.", it applies to the steps of calculating the cost basis / gain-loss of a sale so I have to convert to USD at each step and not at the end, correct?
Thanks