The principle requiring the immediate expensing of R&D does not apply to companies that perform R&D for other companies under contract. In these situations, the R&D costs are capitalized as inventory and carried forward into future years until the contract fees that are determinable and are earned over the term of the project. Income from these contracts can be recognized using either the percentage-of-completion or completed contract method. We discussed these alternatives in Chapter 5.