The amount of such net proceeds shall be computed by, or with the approval of, the board, with reasonable promptness after collection thereof, and after deducting from gross proceeds such costs and expenses as may be reasonably allocated to the particular invention or discovery.