compute_commission
Compute a sales-commission engagement under ASC 340-40 (incremental cost to obtain a contract). Give the commission amount, the benefit period it amortizes over, and how many months have elapsed; it classifies the cost, then capitalizes a recoverable commission and amortizes it straight-line — returning the capitalized asset, amortization to date, the period expense, and the net carrying amount. This is a capitalized asset and an amortization schedule, NOT revenue. It refuses (asks) if recoverability or the amount is unclear. The result is recorded on the engagement file; a principal signs before the workpapers are delivered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engagement_id | Yes | The commission engagement (opened via open_engagement, classified as a commission). | |
| benefit_months | Yes | The benefit period over which it amortizes, in months. | |
| commission_usd | Yes | The commission — the incremental cost to obtain the contract. | |
| months_elapsed | Yes | Months elapsed into the benefit period at this close. | |
| contract_terminated | No | Set true if the underlying contract was TERMINATED early. The remaining capitalized asset can't simply finish amortizing — it triggers an ASC 340-40-35-3 impairment assessment, raised as an open item rather than closed clean. | |
| expected_to_be_recovered | No | Whether the cost is expected to be recovered (340-40-25-1). Omit if unknown and it will ask. | |
| elect_practical_expedient | No | Set true ONLY if the entity has ELECTED the ≤1-year practical expedient (340-40-25-4) to expense a commission that amortizes within a year. Omit/false → a ≤12-month commission CAPITALIZES (25-1); the expedient is a disclosed election, never auto-applied. | |
| remaining_consideration_usd | No | On a terminated contract, the consideration the entity still expects to receive (340-40-35-3(a)). Omit if none/unknown and the full carrying amount is flagged for impairment review. |