It doesn’t matter if the foreign workers are contractors or employees. The expense is considered R&D and must be amortized over 15 years. I’ve dealt with this personally since 2023 for my company working with a legion of tax consultants. There’s no loophole here, I assure you.